Skip to content
Bitcoin Roots

v30.3-roots.1 · Commit 28: [PATCH 28/68] fix(wallet): secure asynchronous sweep cancellation

src/interfaces/chain.h

Before: src/interfaces/chain.h · After: src/interfaces/chain.h

File metadata
index 2db30863416628cc68e18a7603a8449cc1e522f9..4f1d148a74cdd5c6a57c07a9fec8e00bffa58c77 100644

Download original patch · Release notes

Diff rows 1–9 of 9. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.

src/interfaces/chain.h CHANGED
@@ -200,7 +200,8 @@ public:
200
200
  //! populates the values.
201
201
  virtual void findCoins(std::map<COutPoint, Coin>& coins) = 0;
202
202
  //! Snapshot scan for script matches. Results can become spent before use.
203
- virtual ScanResult findScriptPubKeys(const std::set<CScript>& needles, std::map<COutPoint, Coin>& coins) = 0;
203
+ virtual ScanResult findScriptPubKeys(const std::set<CScript>& needles, std::map<COutPoint, Coin>& coins,
204
+ const std::function<bool()>& should_abort = {}) = 0;
204
205
 
205
206
  //! Estimate fraction of total transactions verified if blocks up to
206
207
  //! the specified block hash are verified.