Skip to content

test: Simplify feature_fastprune.py - #27553

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2305-test-fastprune-less-code-
May 3, 2023
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2305-test-fastprune-less-code-

Conversation

@maflcko

@maflcko maflcko commented May 2, 2023

Copy link
Copy Markdown
Member

The goal of the test is a single regression check to see if a RPC times out. It shouldn't do more than calling the RPC (and the minimum work needed to get there).

Fix that by removing all blocktools imports and a for loop.

@DrahtBot

DrahtBot commented May 2, 2023 •

Copy link
Copy Markdown
Contributor

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

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK pinheadmz, theStack

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@pinheadmz pinheadmz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK fa17767

Thanks for simplifying, dunno why I didn't think of generateblock for this

Show Signature
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

ACK fa17767154e21e9ed00782a9e4cf9a3d1d66f5d1
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE5hdzzW4BBA4vG9eM5+KYS2KJyToFAmRRHVcACgkQ5+KYS2KJ
yTrfcA/+NVtObvE0dL9V50sLrQ6Qep0hJ9MTxdL/nGsa8fL3IOGnH/WV0npEytC3
FjvAOCbD84CHe2iIvzKkSkT93yDElB9Mz6c35TFbhwHFrRHSGCUK+IFWNuP8aOBb
kWOZotFF/OYC5JGTGkCX9HC6KuS6dlLrz0IvZb3YQ09D5u8LFfRHOU0Hy/kMK0G6
1hfdhlGuVvpePdubh67eYH76a0h3jkaIxk1h1nLWgx35+oHXPd5UO3Z+XJP0jP++
Ch7s6oF7Ae56iNU3hM6fUyMJFP22sEX7c7eMFfyN4uzJ37PS80HddLDUZ9Doq9oR
lSBIr92G8leeqiCyJrHS1gjvA2+cfbvBrpkeTRoCybB2X0HlPM+Av5vA8C+Ld+En
enAGONGEF1M9ohawt9iTMkdEO//3V0TjeN6JkqIV/uD6xvrT6CMKuhCZTV1Kl/m4
AQud3QCXyxE2Qf9zMvC+SW+1zM+g2y+CbhyfQOjc0Maef4unBAaabL3B0kuDed8D
VlddZbAH/nY+3xSJaiCUevulZI+fdKvsNj0gQzc7/11lCBHRkAik7OGL6r9zA9N0
LvSOCfpaOfqWkQhcltm1G9uUemNVT9eX6at3bHD3wnGqCnnCcDZPxQf0P1iEIypg
MZQ9mMnfr9aWA9GVS2hikxKvYVLBsNIVplyLC4NHE808bMoYrZE=
=u3IH
-----END PGP SIGNATURE-----

pinheadmz's public key is on keybase

@theStack theStack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK fa17767

Checked that the size of the generated blocks in master and PR are about equal by adding
print(len(bytes.fromhex(self.nodes[0].getblock(self.nodes[0].getbestblockhash(), 0))))
at the end of the test (interestingly, in the PR the block is exactly 1 byte larger [65904 vs. 65903] but that doesn't matter of course).

@fanquake
fanquake merged commit 067a835 into bitcoin:master May 3, 2023
@maflcko
maflcko deleted the 2305-test-fastprune-less-code- branch May 3, 2023 08:54
@bitcoin bitcoin locked and limited conversation to collaborators May 2, 2024
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.

5 participants