Skip to content
Bitcoin Roots

v29.4-roots.4 · Commit 28: [PATCH 28/37] fix(wallet): secure asynchronous sweep cancellation

src/node/interfaces.cpp

Before: src/node/interfaces.cpp · After: src/node/interfaces.cpp

File metadata
index 33b68065b6db849d9b18c3358607b9844db33f0b..0496f0b847bc0f773ce8d671bd5db57d8a8ab7d5 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/node/interfaces.cpp CHANGED
@@ -638,7 +638,8 @@ public:
638
638
  int{FillBlock(block2, block2_out, lock, active, chainman().m_blockman)};
639
639
  }
640
640
  void findCoins(std::map<COutPoint, Coin>& coins) override { return FindCoins(m_node, coins); }
641
- interfaces::ScanResult findScriptPubKeys(const std::set<CScript>& needles, std::map<COutPoint, Coin>& coins) override { return ScanUTXOSet(m_node, needles, coins); }
641
+ interfaces::ScanResult findScriptPubKeys(const std::set<CScript>& needles, std::map<COutPoint, Coin>& coins,
642
+ const std::function<bool()>& should_abort) override { return ScanUTXOSet(m_node, needles, coins, should_abort); }
642
643
  double guessVerificationProgress(const uint256& block_hash) override
643
644
  {
644
645
  LOCK(chainman().GetMutex());