Skip to content
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: use MiniWallet for p2p_blocksonly.py #21867

Conversation

theStack
Copy link
Contributor

@theStack theStack commented May 6, 2021

This PR enables one more of the non-wallet functional tests (p2p_blocksonly.py) to be run even with the Bitcoin Core wallet disabled by using the new MiniWallet instead, as proposed in #20078.

Note that MiniWallet creates segwit transactions by default, i.e. txid and wtxid are not identical and we have to return both from check_p2p_tx_violation(...): wtxid is needed to match an expected "received getdata for: wtx ..." debug output, whereas the txid is needed to wait for a certain tx via wait_for_tx(...).

This test can now be run even with the Bitcoin Core wallet disabled.
@fanquake fanquake added the Tests label May 6, 2021
Copy link
Contributor

@jonatack jonatack left a comment

Choose a reason for hiding this comment

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

ACK 9f767e8 tested with --disable-wallet

@practicalswift
Copy link
Contributor

Concept ACK

Thanks for enabling the small small wallet in more tests!

@maflcko maflcko merged commit 06d573f into bitcoin:master May 6, 2021
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request May 6, 2021
9f767e8 test: use MiniWallet for p2p_blocksonly.py (Sebastian Falbesoner)

Pull request description:

  This PR enables one more of the non-wallet functional tests (p2p_blocksonly.py) to be run even with the Bitcoin Core wallet disabled by using the new MiniWallet instead, as proposed in bitcoin#20078.

  Note that MiniWallet creates segwit transactions by default, i.e. txid and wtxid are not identical and we have to return both from `check_p2p_tx_violation(...)`: wtxid is needed to match an expected `"received getdata for: wtx ..."` debug output, whereas the txid is needed to wait for a certain tx via `wait_for_tx(...)`.

ACKs for top commit:
  jonatack:
    ACK 9f767e8 tested with `--disable-wallet`

Tree-SHA512: f08001f02c3c310ccdf713af0ba17304368a36414f412749908bbe8c03ad1e902190b8768b79f3b4909855762f285e7ab1b627cc4f45c90b42bb097a43cb4318
@theStack theStack deleted the 20210505-test-convert_p2pblocksonly_miniwallet branch July 31, 2021 20:08
gwillen pushed a commit to ElementsProject/elements that referenced this pull request Jun 1, 2022
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants