v29.4-roots.3 · Commit 28: [PATCH 28/30] fix(wallet): secure asynchronous sweep cancellation
src/interfaces/chain.h
Before: src/interfaces/chain.h · After: src/interfaces/chain.h
File metadata
index ceedf3ef09538bc5679979822029d51a3ff83957..1dfe05a33f40891f1336ed3c7f72fd425b5278a1 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
|
@@ -206,7 +206,8 @@ public:
|
|
|
206
206
|
//! populates the values.
|
|
207
207
|
virtual void findCoins(std::map<COutPoint, Coin>& coins) = 0;
|
|
208
208
|
//! Snapshot scan for script matches. Results can become spent before use.
|
|
209
|
-
virtual ScanResult findScriptPubKeys(const std::set<CScript>& needles, std::map<COutPoint, Coin>& coins) = 0;
|
|
209
|
+
virtual ScanResult findScriptPubKeys(const std::set<CScript>& needles, std::map<COutPoint, Coin>& coins,
|
|
210
|
+
const std::function<bool()>& should_abort = {}) = 0;
|
|
210
211
|
|
|
211
212
|
//! Estimate fraction of total transactions verified if blocks up to
|
|
212
213
|
//! the specified block hash are verified.
|