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: Speed up rpc_blockchain.py by removing miniwallet.generate() #21200

Merged
merged 5 commits into from
Feb 25, 2021

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Feb 16, 2021

Speed up various tests:

  • Remove unused nodes, which only consume time on start/stop
  • Remove unused "bug workarounds"
  • Remove the need for miniwallet.generate() by adding miniwallet.scan_blocks(). (On my system, with valgrind, generating 105 blocks takes 3.31 seconds. Rescanning 5 blocks takes 0.11 seconds.)

@DrahtBot
Copy link
Contributor

DrahtBot commented Feb 17, 2021

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@laanwj
Copy link
Member

laanwj commented Feb 25, 2021

Code review ACK faa137e
Thank you for working on speeding up the tests.

@laanwj laanwj merged commit 2059d32 into bitcoin:master Feb 25, 2021
@maflcko maflcko deleted the 2102-testSpeedUp branch February 25, 2021 13:43
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Feb 25, 2021
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 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

3 participants