-
Notifications
You must be signed in to change notification settings - Fork 23
test: add legacy descriptor tests #214
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
base: master
Are you sure you want to change the base?
test: add legacy descriptor tests #214
Conversation
Pull Request Test Coverage Report for Build 15028696206Details
💛 - Coveralls |
9f667ca
to
5f9d18c
Compare
5f9d18c
to
89643fb
Compare
89643fb
to
71ae907
Compare
Side note: I think bdk_wallet/wallet/tests/wallet.rs Lines 778 to 785 in 7cdc985
|
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.
Code review ACK 71ae907
71ae907
to
80c2752
Compare
Should I fix this clippy warning? It's unrelated.
|
I would say go ahead and change |
7b53984
to
dd31471
Compare
dd31471
to
a5d1338
Compare
@ValuedMammal fixed. |
It looks good overall, tests are passing for me. |
When I updated to #a5d1338d1b0402db7c7000a538a6e81a805ce073, the tests failed locally because the compiler was using
I temporarily updated the version to 0.32.6, and after that, the compiler used the new version, and the tests passed. I'm uncertain if it's ideal to upgrade to 0.32.6, and I'm curious if anyone else has experienced the same issue. |
Description
This PR closes #134 and is a revival of bitcoindevkit/bdk#1130, which adds the following tests:
test_legacy_bump_fee_no_change_add_input_and_change()
test_legacy_bump_fee_add_input()
test_legacy_bump_fee_drain_wallet()
test_legacy_bump_fee_zero_abs()
test_legacy_create_tx_custom_sighash()
test_legacy_create_tx_default_sighash()
test_legacy_create_tx_absolute_high_fee()
test_legacy_create_tx_absolute_zero_fee()
test_legacy_create_tx_absolute_fee()
test_legacy_create_tx_custom_fee_rate()
test_legacy_get_funded_wallet_tx_fee_rate()
Changelog:
assert_fee_rate_legacy!
macro for legacy transactions.check_fee!
macro now returnsAmount
instead ofResult<Amount>
.wallet.sent_and_received
got destructured to(sent, received)
instead ofsent_and_received.{0,1}
.TweakedKeypair::to_inner()
forTweakedKeypair::to_keypair()
.Checklists
All Submissions:
cargo fmt
andcargo clippy
before committing