Repository navigation
Tests: Fill out dust limit unit test for known types except bare multisig - #26875
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee 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. |
1f22578 to
b093f56
Compare
theStack
left a comment
There was a problem hiding this comment.
Code-review ACK b093f56
Cross-checked the dust limit values by comparing to the output of the functional dust limit test that #26631 introduces:
2023-01-13T14:57:38.059000Z TestFramework (INFO): Test default dust limit setting (3000 sat/kvB)...
2023-01-13T14:57:38.064000Z TestFramework (INFO): -> Test P2PK (uncompressed) output (size 67, limit 672)
2023-01-13T14:57:38.100000Z TestFramework (INFO): -> Test P2PK (compressed) output (size 35, limit 576)
2023-01-13T14:57:38.119000Z TestFramework (INFO): -> Test P2PKH output (size 25, limit 546)
2023-01-13T14:57:38.133000Z TestFramework (INFO): -> Test P2SH output (size 23, limit 540)
2023-01-13T14:57:38.146000Z TestFramework (INFO): -> Test P2WPKH output (size 22, limit 294)
2023-01-13T14:57:38.159000Z TestFramework (INFO): -> Test P2WSH output (size 34, limit 330)
2023-01-13T14:57:38.173000Z TestFramework (INFO): -> Test P2TR output (size 34, limit 330)
2023-01-13T14:57:38.187000Z TestFramework (INFO): -> Test P2?? (future witness version 2) output (size 4, limit 240)
2023-01-13T14:57:38.201000Z TestFramework (INFO): -> Test P2?? (future witness version 16) output (size 42, limit 354)
2023-01-13T14:57:38.215000Z TestFramework (INFO): -> Test bare multisig (m-of-3) output (size 201, limit 1074)
2023-01-13T14:57:38.231000Z TestFramework (INFO): -> Test null data (OP_RETURN) output (size 20, limit 0)
(somehow unrelated side-note: through the comment for uncompressed P2PK, TIL about the existence of "hybrid" pubkeys, prefixed with 0x06 or 0x07 instead of 0x04 👀 : https://bitcoin.stackexchange.com/questions/57855/c-secp256k1-what-do-prefixes-0x06-and-0x07-in-an-uncompressed-public-key-signif)
|
OpenSSL is a trip :) I didn't know about that PR, sorry! Will take a look there as well. |
|
Concept ACK |
maflcko
left a comment
There was a problem hiding this comment.
review ACK b093f56 🥉
Show signature
Signature:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
review ACK b093f5619f8f9b7d63ee60ff04de00b907b13d64 🥉
-----BEGIN PGP SIGNATURE-----
iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
pUicAQwAme8hUdLpNPexYsRu2QXv5c+O0Omdfg5cwmLORnRckSquLFWxYDPcY6TZ
Q9AhWfbVyWltCzFEEkd1kfEBRTTHup868DR5VEPyjt6VPmA7O8MlqthgS9Q0DAep
4MHTTJ/n0Z6zDRybltWQS0btS/42SIH6Bk4WcrJI5DtW7IkXbekDVsdKg6uohULj
HxGzxpo4xQVHuZ84VFDktrwI+luxpaS3dm0qodl65N3kPm2fY62rSLGBFZVHRyK6
e994TMtglrLzta7MSTXFi/DJwfMjGLQXgCqKKidwsnGF9DPoEJxvMjc52A1ehJQ3
je8XzV+0QKWMSaU87/ColX6NT1cN+sb96jy8Xs2JgE7eeAOQvr+AqlXSEvuho++w
KM8bbHEHmd9mcFZ9InTJa4aVGjXxoi6J97Xv1YJWPFP8xJJvJlsqPCS6z1mttqGo
wieMmHUNOeKynoaB/SJEENX4NOoAnl2c8E1LnsgzbCRwgOZnMBe0GMBj7y2PJYcE
LeqTa6/B
=/7JM
-----END PGP SIGNATURE-----
Having the constants checked explicitly in a single spot helps with possible regressions and also useful for documentation.
In addition, add a check for undefined v1 witness programs.