Skip to content

Conversation

@gregorydemay
Copy link
Contributor

@gregorydemay gregorydemay commented Jan 5, 2026

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:

  1. Ensure the correctness of the interaction with Dogecoin.
    2.Ease testing and debugging scenarios in Regtest mode.

@github-actions github-actions bot added the test label Jan 5, 2026
gregorydemay and others added 2 commits January 5, 2026 14:22
# 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
@gregorydemay gregorydemay marked this pull request as ready for review January 12, 2026 08:45
@gregorydemay gregorydemay requested a review from a team January 12, 2026 08:45
@gregorydemay gregorydemay requested a review from a team as a code owner January 12, 2026 08:45
Copy link
Contributor

@mducroux mducroux left a 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

Copy link
Member

@ninegua ninegua left a 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

Copy link
Contributor Author

@gregorydemay gregorydemay left a comment

Choose a reason for hiding this comment

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

Thanks @mducroux and @ninegua for the reviews!

@gregorydemay gregorydemay added this pull request to the merge queue Jan 16, 2026
Merged via the queue into master with commit e808b7e Jan 16, 2026
63 of 64 checks passed
@gregorydemay gregorydemay deleted the gdemay/DEFI-2571-ckdoge-regtest branch January 16, 2026 12:23
github-merge-queue bot pushed a commit that referenced this pull request Jan 20, 2026
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants