diff options
| author | Luke Dashjr <[email protected]> | 2017-02-03 19:13:28 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2017-06-05 23:14:34 +0000 |
| commit | b005bf21a7cabe827ef62f266c22adf2ee745b61 (patch) | |
| tree | b5c1181a3e3300eeaf458c0b588510700bf50e69 /src/bitcoin-tx.cpp | |
| parent | [bitcoin-tx] add rbfoptin command (diff) | |
| download | discoin-b005bf21a7cabe827ef62f266c22adf2ee745b61.tar.xz discoin-b005bf21a7cabe827ef62f266c22adf2ee745b61.zip | |
Introduce MAX_BIP125_RBF_SEQUENCE constant
Diffstat (limited to 'src/bitcoin-tx.cpp')
| -rw-r--r-- | src/bitcoin-tx.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp index 87d847594..a67c42ec5 100644 --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -13,6 +13,7 @@ #include "core_io.h" #include "keystore.h" #include "policy/policy.h" +#include "policy/rbf.h" #include "primitives/transaction.h" #include "script/script.h" #include "script/sign.h" @@ -215,7 +216,7 @@ static void MutateTxRBFOptIn(CMutableTransaction& tx, const std::string& strInId int cnt = 0; for (CTxIn& txin : tx.vin) { if (strInIdx == "" || cnt == inIdx) { - txin.nSequence = std::numeric_limits<unsigned int>::max() - 2; + txin.nSequence = MAX_BIP125_RBF_SEQUENCE; } ++cnt; } |