Skip to content
Bitcoin Roots

v29.4-roots.3 · Commit 10: [PATCH 10/30] fix: harden final Roots assurance

src/wallet/spend.h

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

File metadata
index 4bdc84846484f029906fa0e37297954646632fa4..ac5a080cac7d8c4a0b5662b8f3d509f7252e8526 100644

Download original patch · Release notes

Diff rows 1–12 of 12. 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
@@ -14,7 +14,12 @@
14
 
15
  #include <optional>
16
 
 
 
17
  namespace wallet {
 
 
 
18
  /** Get the marginal bytes if spending the specified output from this transaction.
19
  * Use CoinControl to determine whether to expect signature grinding when calculating the size of the input spend. */
20
  int CalculateMaximumSignedInputSize(const CTxOut& txout, const CWallet* pwallet, const CCoinControl* coin_control);
 
14
 
15
  #include <optional>
16
 
17
+ class FastRandomContext;
18
+
19
  namespace wallet {
20
+ /** Pick an automatic anti-fee-sniping locktime that does not collide with reserved policy markers. */
21
+ uint32_t GetAntiFeeSnipingLockTime(int block_height, FastRandomContext& rng_fast);
22
+
23
  /** Get the marginal bytes if spending the specified output from this transaction.
24
  * Use CoinControl to determine whether to expect signature grinding when calculating the size of the input spend. */
25
  int CalculateMaximumSignedInputSize(const CTxOut& txout, const CWallet* pwallet, const CCoinControl* coin_control);