v29.4-roots.4 · Commit 28: [PATCH 28/37] fix(wallet): secure asynchronous sweep cancellation
src/wallet/spend.h
Before: src/wallet/spend.h · After: src/wallet/spend.h
File metadata
index b6ba26454dbdcfca9ec00cd8bf719a3241f4089a..77ee9791a4ca71a03f8f9d155ba350fe9f7b82cd 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
|
@@ -21,6 +21,10 @@ class Coin;
|
|
|
21
21
|
class CScript;
|
|
22
22
|
struct FlatSigningProvider;
|
|
23
23
|
|
|
24
|
+
namespace interfaces {
|
|
25
|
+
class SweepAuthorization;
|
|
26
|
+
}
|
|
27
|
+
|
|
24
28
|
class FastRandomContext;
|
|
25
29
|
|
|
26
30
|
namespace wallet {
|
|
@@ -34,7 +38,8 @@ struct SweepTransactionResult
|
|
|
34
38
|
using SweepBroadcastFn = std::function<bool(const CTransactionRef&, std::string&)>;
|
|
35
39
|
util::Result<SweepTransactionResult> CreateSweepTransaction(CWallet& wallet, FlatSigningProvider& provider,
|
|
36
40
|
const std::map<COutPoint, Coin>& coins,
|
|
37
|
-
const CScript& destination, const SweepBroadcastFn& broadcast);
|
|
41
|
+
const CScript& destination, const SweepBroadcastFn& broadcast,
|
|
42
|
+
interfaces::SweepAuthorization& authorization);
|
|
38
43
|
/** Pick an automatic anti-fee-sniping locktime that does not collide with reserved policy markers. */
|
|
39
44
|
uint32_t GetAntiFeeSnipingLockTime(int block_height, FastRandomContext& rng_fast);
|
|
40
45
|
|