Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Mar 14, 2022

This was accidentally added in commit 0ea47ba. Presumably due to a copy-paste error, as CreateTransaction already takes care of the rbf-signal.

@maflcko
Copy link
Member Author

maflcko commented Mar 14, 2022

Can be tested in the GUI Console with:

bumpfee $txid '{"replaceable": $bool_val}'

Copy link
Contributor

@promag promag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review ACK fae5d06

Indeed, input sequence is set in CreateTransactionInternal:

// BIP125 defines opt-in RBF as any nSequence < maxint-1, so
// we use the highest possible value in that range (maxint-2)
// 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::MAX_SEQUENCE_NONFINAL};
for (const auto& coin : selected_coins) {
txNew.vin.push_back(CTxIn(coin.outpoint, CScript(), nSequence));
}

@DrahtBot
Copy link
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #20640 (wallet, refactor: return out-params of CreateTransaction() as optional struct by theStack)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@achow101
Copy link
Member

ACK fae5d06

@fanquake
Copy link
Member

cc @instagibbs

@fanquake fanquake merged commit cea230e into bitcoin:master Mar 23, 2022
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Mar 24, 2022
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Mar 24, 2022
@maflcko maflcko deleted the 2203-remFeeBumpCode-🐇 branch March 24, 2022 07:13
@bitcoin bitcoin locked and limited conversation to collaborators Mar 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants