diff options
| author | fanquake <[email protected]> | 2020-04-27 11:48:30 +0800 |
|---|---|---|
| committer | fanquake <[email protected]> | 2020-04-29 11:20:31 +0800 |
| commit | 692f8307fc1449299b90182e7d79efb81a55d7ab (patch) | |
| tree | eaf24bf3f39a4d84774632eccfe5d82387e6e60f /src/httpserver.cpp | |
| parent | validation: Add minimum witness commitment size constant (diff) | |
| download | discoin-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