Add assumevalid testcase
commit7b5e3fe0ccb434821927c9cc2e9f2fb0d7f01dc4
authorJohn Newbery <john@johnnewbery.com>
Fri, 13 Jan 2017 19:23:59 +0000 (13 14:23 -0500)
committerGregory Maxwell <greg@xiph.org>
Sat, 14 Jan 2017 22:17:23 +0000 (14 22:17 +0000)
treeb63cf89037cf2b2b57cf40322545f648f80184ec
parente440ac7ef3b6f3ad1cd8fc7027cece40413202d9
Add assumevalid testcase

Adds a qa testcase testing the new "-assumevalid" option. The testcase builds
a chain that includes and invalid signature for one of the transactions and
sends that chain to three nodes:

 - node0 has no -assumevalid parameter and rejects the invalid chain.
 - node1 has -assumevalid set and accepts the invalid chain.
 - node2 has -assumevalid set but the invalid block is not buried deep
   enough to assume invalid, and so rejects the invalid chain.
qa/rpc-tests/assumevalid.py [new file with mode: 0755]