8000 test: mining_getblocktemplate_longpoll.py improvements (use MiniWallet, add logging) by theStack · Pull Request #20159 · bitcoin/bitcoin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

test: mining_getblocktemplate_longpoll.py improvements (use MiniWallet, add logging) #20159

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

Conversation

theStack
Copy link
Contributor
@theStack theStack commented Oct 15, 2020

This PR enables one more of the non-wallet functional tests (mining_getblocktemplate_longpoll.py) to be run even with the Bitcoin Core wallet disabled by using the new MiniWallet instead, as proposed in #20078. Also adds missing log messages for the subtests.

This was the only functional test that used the random_transaction helper in test_framework/util.py, hence it is removed, together with other helpers (make_change and gather_inputs) that were again only used by random_transaction.

@fanquake fanquake added the Tests label Oct 15, 2020
This test can now be run even with the Bitcoin Core wallet disabled.
@theStack theStack force-pushed the 20201015-test-improve-mining_getblocktemplate_longpoll branch from c63e7c2 to ae69e09 Compare October 16, 2020 13:23
@theStack
Copy link
Contributor Author

Updated PR description and force-pushed with the feedback from MarcoFalke taken into account.

@theStack theStack force-pushed the 20201015-test-improve-mining_getblocktemplate_longpoll branch from ae69e09 to b128b56 Compare October 16, 2020 13:41
@maflcko
Copy link
Member
maflcko commented Oct 16, 2020

ACK b128b56

@maflcko maflcko merged commit 80c8a02 into bitcoin:master Oct 17, 2020
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Oct 18, 2020
…ements (use MiniWallet, add logging)

b128b56 test: add logging for mining_getblocktemplate_longpoll.py (Sebastian Falbesoner)
8ee3536 test: remove unused helpers random_transaction(), make_change() and gather_inputs() (Sebastian Falbesoner)
fddce7e test: use MiniWallet for mining_getblocktemplate_longpoll.py (Sebastian Falbesoner)

Pull request description:

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

  This was the only functional test that used the `random_transaction` helper in `test_framework/util.py`, hence it is removed, together with other helpers (`make_change` and `gather_inputs`) that were again only used by `random_transaction`.

ACKs for top commit:
  MarcoFalke:
    ACK b128b56

Tree-SHA512: 09a5fa7b0f5976a47040f7027236d7ec0426d5a4829a082221c4b5fae294470230e89ae3df0bca0eea26833162c03980517f5cc88761ad251c3df4c4a49bca46
@theStack theStack deleted the 20201015-test-improve-mining_getblocktemplate_longpoll branch December 1, 2020 09:54
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Nov 25, 2021
Summary:
This test can now be run even with the Bitcoin ABC wallet disabled.

This is a backport of [[bitcoin/bitcoin#20159 | core#20159]] [1/3]
bitcoin/bitcoin@fddce7e

Test Plan: `test/functional/test_runner.py mining_getblocktemplate_longpoll`

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10517
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Nov 25, 2021
…ather_inputs()

Summary:
This is a backport of [[bitcoin/bitcoin#20159 | core#20159]] [2/3]
bitcoin/bitcoin@8ee3536

Depends on D10517

Test Plan: `ninja check-functional-extended`

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10518
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Nov 25, 2021
Summary:
This is a backport of [[bitcoin/bitcoin#20159 | core#20159]] [3/3]
bitcoin/bitcoin@b128b56

Depends on D10518

Test Plan: `test/functional/test_runner.py mining_getblocktemplate_longpoll`

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10519
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 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.

3 participants
0