-
Notifications
You must be signed in to change notification settings - Fork 372
test(ckdoge): regtest #8214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(ckdoge): regtest #8214
Conversation
# Conflicts: # rs/dogecoin/ckdoge/minter/src/address/mod.rs # rs/dogecoin/ckdoge/minter/src/transaction/mod.rs # rs/dogecoin/ckdoge/minter/src/transaction/tests.rs # rs/dogecoin/ckdoge/minter/src/updates/get_doge_address.rs # rs/dogecoin/ckdoge/minter/src/updates/tests.rs # rs/dogecoin/ckdoge/test_utils/src/dogecoin.rs
mducroux
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this very useful PR @gregorydemay. Left only a few minor comments
ninegua
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Left a minor question
gregorydemay
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…ns increases (#8345) Follow-up on #8214 to ensure the fee rate of a replacement transaction always increases. Although not a requirement of [BIP-125](https://github.com/bitcoin/bips/blob/master/bip-0125.mediawiki), this constraint is actually enforced by Dogecoin and Bitcoin miners and is part of the [implementation](bitcoin/bitcoin#6871) referenced in the BIP > Replaces transactions already in the mempool if a new transaction seen with a higher fee, specifically both **a higher fee per KB** and a higher absolute fee. This PR ensures this by 1. Recording the effective fee rate of a sent transaction instead of the initially estimated fee rate. The effective fee rate may be higher than the estimated one due the encoded signatures of the sent transaction requiring potentially less bytes than what was estimated (DER encoding of signatures is not constant size). This ensures that adding the relay fee for the replacement transaction does indeed increase the fee rate of the replacement transaction. 2. Rounding the estimated fee up to ensure that the effective fee rate is always at least the estimated one. --------- Co-authored-by: IDX GitHub Automation <infra+github-automation@dfinity.org>
Follow-up on #8187: to ensure that Dogecoin transactions produced by the minter are indeed correct, change all the existing ckDOGE integration tests to use the true Dogecoin daemon in regtest mode instead of the simple mock used until now (that's still being used for the ckBTC integration tests). This has two main merits:
2.Ease testing and debugging scenarios in Regtest mode.