Fix performance test for block verification.

This commit is contained in:
Sean Bowe 2016-07-05 07:55:35 -06:00
parent 99edcaaf53
commit 2ba9641767
2 changed files with 2 additions and 1 deletions

View File

@ -108,7 +108,7 @@ case "$1" in
;;
validatelargetx)
zcashd_generate
zcash_rpc zcbenchmark validatelargetx 10
zcash_rpc zcbenchmark validatelargetx 2
;;
*)
zcashd_stop

View File

@ -241,6 +241,7 @@ processblock:
// 4) Call CreateNewBlock (which itself calls TestBlockValidity)
pblocktemplate = CreateNewBlock(scriptDummy);
pblock = &pblocktemplate->block;
pindexPrev = chainActive.Tip();
// 5) Call TestBlockValidity again under timing
timer_start();