aboutsummaryrefslogtreecommitdiff
path: root/src/test/validation_block_tests.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2020-04-26 20:01:46 +0800
committerfanquake <fanquake@gmail.com>2020-04-29 11:20:22 +0800
commit06442549f8b725f46c1c727e9eb6fde6b843503c (patch)
tree13cccca00de2f9c22549cb878df0b5923fbfb8af /src/test/validation_block_tests.cpp
parentba348dbc518b8e082a5dc3a225432fdacf859a13 (diff)
downloadbitcoin-06442549f8b725f46c1c727e9eb6fde6b843503c.tar.xz
validation: Add minimum witness commitment size constant
Per BIP 141, the witness commitment structure is atleast 38 bytes, OP_RETURN (0x6a) + 36 (0x24) + 4 byte header (0xaa21a9ed) + 32 byte SHA256 hash. It can be longer, however any additional data has no consensus meaning.
Diffstat (limited to 'src/test/validation_block_tests.cpp')
0 files changed, 0 insertions, 0 deletions