v30.3-roots.1 · Commit 10: [PATCH 10/68] fix: harden Roots priority and wallet policy boundaries
src/wallet/spend.h
Before: src/wallet/spend.h · After: src/wallet/spend.h
File metadata
index 9b982e3d5218eedfd0a001f0e5a460fb1d12688a..1f4d08e22fbd9291720f35b68ca1bbe105233fa4 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
|
@@ -19,7 +19,12 @@
|
|
|
19
19
|
#include <unordered_set>
|
|
20
20
|
#include <vector>
|
|
21
21
|
|
|
22
|
+
class FastRandomContext;
|
|
23
|
+
|
|
22
24
|
namespace wallet {
|
|
25
|
+
/** Pick an automatic anti-fee-sniping locktime that does not collide with reserved policy markers. */
|
|
26
|
+
uint32_t GetAntiFeeSnipingLockTime(int block_height, FastRandomContext& rng_fast);
|
|
27
|
+
|
|
23
28
|
/** Get the marginal bytes if spending the specified output from this transaction.
|
|
24
29
|
* Use CoinControl to determine whether to expect signature grinding when calculating the size of the input spend. */
|
|
25
30
|
int CalculateMaximumSignedInputSize(const CTxOut& txout, const CWallet* pwallet, const CCoinControl* coin_control);
|