mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
bitcoin-tx: rbfoptin: Avoid touching nSequence if the value is already opting in
This commit is contained in:
parent
b005bf21a7
commit
23b0fe34f5
@ -216,7 +216,9 @@ static void MutateTxRBFOptIn(CMutableTransaction& tx, const std::string& strInId
|
||||
int cnt = 0;
|
||||
for (CTxIn& txin : tx.vin) {
|
||||
if (strInIdx == "" || cnt == inIdx) {
|
||||
txin.nSequence = MAX_BIP125_RBF_SEQUENCE;
|
||||
if (txin.nSequence > MAX_BIP125_RBF_SEQUENCE) {
|
||||
txin.nSequence = MAX_BIP125_RBF_SEQUENCE;
|
||||
}
|
||||
}
|
||||
++cnt;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user