aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2020-04-27 11:48:30 +0800
committerfanquake <fanquake@gmail.com>2020-04-29 11:20:31 +0800
commit692f8307fc1449299b90182e7d79efb81a55d7ab (patch)
treeeaf24bf3f39a4d84774632eccfe5d82387e6e60f /src/validation.cpp
parent06442549f8b725f46c1c727e9eb6fde6b843503c (diff)
downloadbitcoin-692f8307fc1449299b90182e7d79efb81a55d7ab.tar.xz
test: add test for witness commitment index
As per BIP 141, if there is more than 1 pubkey that matches the witness commitment structure, the one with the highest output index should be chosen. This adds a sanity check that we are doing that, which will fail if anyone trys to "optimise" GetWitnessCommitmentIndex() be returning early.
Diffstat (limited to 'src/validation.cpp')
0 files changed, 0 insertions, 0 deletions