diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2017-02-03 19:13:28 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2017-06-05 23:14:34 +0000 |
commit | b005bf21a7cabe827ef62f266c22adf2ee745b61 (patch) | |
tree | b5c1181a3e3300eeaf458c0b588510700bf50e69 /src/bitcoin-tx.cpp | |
parent | 575cde4605c9a321ad591dbb7d632dd0ef946d40 (diff) |
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 87d8475942..a67c42ec50 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; } |