-
Notifications
You must be signed in to change notification settings - Fork 37.8k
test: Set regtest.BIP65Height = 111 to speed up tests #21862
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
ce16c75
to
fa91563
Compare
Concept ACK |
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, 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. |
Concept ACK |
fa91563
to
13106f4
Compare
fe1e0ae
to
94a14ed
Compare
Concept ACK |
94a14ed
to
faa5228
Compare
Rebased and ready for review |
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.
Tested ACK faa5228 🚀
Good to see that the burden of generating large numbers of blocks is more and more relieved. This enables nice speed-ups for the affected tests (>3x for feature_cltv.py, 2x for rpc_signrawtransaction.py on my machine).
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.
tACK faa5228 🧪
Tested on macOS v11.5.2
Clean changes, affected tests aren't broken. More importantly, saw the following times on master and this patch respectively:
Master
File | User | System |
---|---|---|
test/functional/feature_cltv.py | 1.35s | 0.36s |
test/functional/rpc_blockchain.py | 1.00s | 0.31s |
test/functional/rpc_signrawtransaction.py | 3.44s | 0.68s |
After Patch
File | User | System |
---|---|---|
test/functional/feature_cltv.py | 0.33s | 0.11s |
test/functional/rpc_blockchain.py | 1.00s | 0.31s |
test/functional/rpc_signrawtransaction.py | 1.52s | 0.41s |
faa5228
to
faf7e48
Compare
Rebased (trivial) |
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.
re-ACK faf7e48 📍
Checked via git range-diff faa5228f...faf7e485
that changes since my last ACK are only rebase-related.
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.
re-ACK faf7e48 🧋
LGTM, clean rebase since last review 🧼
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.
ACK faf7e48
…tests faf7e48 Set regtest.BIP65Height = 111 to speed up tests (MarcoFalke) Pull request description: No need to waste time by forcing creation of more than 1000 blocks to get the benefits of being able to test BIP 65. Also, reducing the height makes it more likely that (third-party) tests are conforming to BIP 65, which is enforced on mainnet for all new blocks. ACKs for top commit: theStack: re-ACK faf7e48 📍 Zero-1729: re-ACK faf7e48 kristapsk: ACK faf7e48 Tree-SHA512: 79a8263e7233838666b9b636b496a8b9eb12398c779f9434677e1d62816732c0a7c7b3e73965be1fb0038d35e05e5a90e665bd74e9610104127dfc4ea38169bf
No need to waste time by forcing creation of more than 1000 blocks to get the benefits of being able to test BIP 65. Also, reducing the height makes it more likely that (third-party) tests are conforming to BIP 65, which is enforced on mainnet for all new blocks.