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