aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorfanquake <[email protected]>2020-04-27 11:48:30 +0800
committerfanquake <[email protected]>2020-04-29 11:20:31 +0800
commit692f8307fc1449299b90182e7d79efb81a55d7ab (patch)
treeeaf24bf3f39a4d84774632eccfe5d82387e6e60f /src/httpserver.cpp
parentvalidation: Add minimum witness commitment size constant (diff)
downloaddiscoin-692f8307fc1449299b90182e7d79efb81a55d7ab.tar.xz
discoin-692f8307fc1449299b90182e7d79efb81a55d7ab.zip
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/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions