v29.4-roots.4 · Commit 28: [PATCH 28/37] 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. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/interfaces/chain.h
CHANGED
|
@@ -206,7 +206,8 @@ public:
|
|
| 206 |
//! populates the values.
|
| 207 |
virtual void findCoins(std::map<COutPoint, Coin>& coins) = 0;
|
| 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;
|
|
|
|
| 210 |
|
| 211 |
//! Estimate fraction of total transactions verified if blocks up to
|
| 212 |
//! the specified block hash are verified.
|
|
|
|
| 206 |
//! populates the values.
|
| 207 |
virtual void findCoins(std::map<COutPoint, Coin>& coins) = 0;
|
| 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,
|
| 210 |
+
const std::function<bool()>& should_abort = {}) = 0;
|
| 211 |
|
| 212 |
//! Estimate fraction of total transactions verified if blocks up to
|
| 213 |
//! the specified block hash are verified.
|