aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorJohn Newbery <[email protected]>2017-01-13 14:23:59 -0500
committerGregory Maxwell <[email protected]>2017-01-14 22:17:23 +0000
commit7b5e3fe0ccb434821927c9cc2e9f2fb0d7f01dc4 (patch)
treeb63cf89037cf2b2b57cf40322545f648f80184ec /src/validation.cpp
parentIntroduce assumevalid setting to skip presumed valid scripts. (diff)
downloaddiscoin-7b5e3fe0ccb434821927c9cc2e9f2fb0d7f01dc4.tar.xz
discoin-7b5e3fe0ccb434821927c9cc2e9f2fb0d7f01dc4.zip
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.
Diffstat (limited to 'src/validation.cpp')
0 files changed, 0 insertions, 0 deletions