Introduce MAX_BIP125_RBF_SEQUENCE constant

This commit is contained in:
Luke Dashjr
2017-02-03 19:13:28 +00:00
parent 575cde4605
commit b005bf21a7
4 changed files with 9 additions and 4 deletions

View File

@@ -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;
}