enable block witness test

This commit is contained in:
andri lim 2020-05-05 20:46:17 +07:00
parent 64af577d8d
commit 9c999ffa9c
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
2 changed files with 6 additions and 4 deletions

View File

@ -116,7 +116,7 @@ proc runTest(numPairs: int, testStatusIMPL: var TestStatus, useRogueKeys: static
for kd in mkeys.keys: for kd in mkeys.keys:
check kd.visited == true check kd.visited == true
proc main() = proc witnesKeysMain() =
suite "random keys block witness roundtrip test": suite "random keys block witness roundtrip test":
randomize() randomize()
@ -132,4 +132,5 @@ proc main() =
test "rogue address ignored": test "rogue address ignored":
runTest(rand(1..30), testStatusIMPL, useRogueKeys = true) runTest(rand(1..30), testStatusIMPL, useRogueKeys = true)
main() when isMainModule:
witnessKeysMain()

View File

@ -99,5 +99,6 @@ cliBuilder:
./test_state_db, ./test_state_db,
./test_difficulty, ./test_difficulty,
./test_transaction_json, ./test_transaction_json,
./test_blockchain_json ./test_blockchain_json,
../stateless/test_witness_keys,
../stateless/test_block_witness