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.
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.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
ACK fa17767154e21e9ed00782a9e4cf9a3d1d66f5d1
Thanks for simplifying, dunno why I didn't think of generateblock for this
<details><summary>Show Signature</summary>
-----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
</details>
ACK fa17767154e21e9ed00782a9e4cf9a3d1d66f5d1
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).