Skip to content
Bitcoin Roots

v29.4-roots.4 · Commit 10: [PATCH 10/37] 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. The two line-number columns refer to before and after.

src/wallet/spend.h CHANGED
@@ -14,7 +14,12 @@
14
14
 
15
15
  #include <optional>
16
16
 
17
+ class FastRandomContext;
18
+
17
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
+
18
23
  /** Get the marginal bytes if spending the specified output from this transaction.
19
24
  * Use CoinControl to determine whether to expect signature grinding when calculating the size of the input spend. */
20
25
  int CalculateMaximumSignedInputSize(const CTxOut& txout, const CWallet* pwallet, const CCoinControl* coin_control);