diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-01-10 14:48:13 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-01-26 15:10:44 +0100 |
commit | fa4339e4c1bb60e0d9263d4f0fe65d03aad52f88 (patch) | |
tree | 2247ad0f3d9b809b95c32c76ffcee7d991f34f51 /src/wallet/spend.cpp | |
parent | 973c39029808a20b9afc244559a92e9d700d3824 (diff) |
Extract CTxIn::MAX_SEQUENCE_NONFINAL constant
Diffstat (limited to 'src/wallet/spend.cpp')
-rw-r--r-- | src/wallet/spend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/spend.cpp b/src/wallet/spend.cpp index d87bdc8679..031d0c82dc 100644 --- a/src/wallet/spend.cpp +++ b/src/wallet/spend.cpp @@ -798,7 +798,7 @@ static bool CreateTransactionInternal( // to avoid conflicting with other possible uses of nSequence, // and in the spirit of "smallest possible change from prior // behavior." - const uint32_t nSequence = coin_control.m_signal_bip125_rbf.value_or(wallet.m_signal_rbf) ? MAX_BIP125_RBF_SEQUENCE : (CTxIn::SEQUENCE_FINAL - 1); + const uint32_t nSequence{coin_control.m_signal_bip125_rbf.value_or(wallet.m_signal_rbf) ? MAX_BIP125_RBF_SEQUENCE : CTxIn::MAX_SEQUENCE_NONFINAL}; for (const auto& coin : selected_coins) { txNew.vin.push_back(CTxIn(coin.outpoint, CScript(), nSequence)); } |