Skip to content
Bitcoin Roots

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

src/wallet/spend.h

Before: src/wallet/spend.h · After: src/wallet/spend.h

File metadata
index 1939e9ce59267cb9a3a1e3228078d43d131b54e0..73501e31e406c6e1ef090d0517874824e8c1b0b7 100644

Download original patch · Release notes

Diff rows 1–19 of 19. 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/wallet/spend.h CHANGED
@@ -25,6 +25,10 @@ class Coin;
25
25
  class CScript;
26
26
  struct FlatSigningProvider;
27
27
 
28
+ namespace interfaces {
29
+ class SweepAuthorization;
30
+ }
31
+
28
32
  class FastRandomContext;
29
33
 
30
34
  namespace wallet {
@@ -38,7 +42,8 @@ struct SweepTransactionResult
38
42
  using SweepBroadcastFn = std::function<bool(const CTransactionRef&, std::string&)>;
39
43
  util::Result<SweepTransactionResult> CreateSweepTransaction(CWallet& wallet, FlatSigningProvider& provider,
40
44
  const std::map<COutPoint, Coin>& coins,
41
- const CScript& destination, const SweepBroadcastFn& broadcast);
45
+ const CScript& destination, const SweepBroadcastFn& broadcast,
46
+ interfaces::SweepAuthorization& authorization);
42
47
  /** Pick an automatic anti-fee-sniping locktime that does not collide with reserved policy markers. */
43
48
  uint32_t GetAntiFeeSnipingLockTime(int block_height, FastRandomContext& rng_fast);
44
49