Fix performance test for block verification.
This commit is contained in:
parent
99edcaaf53
commit
2ba9641767
|
@ -108,7 +108,7 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
validatelargetx)
|
validatelargetx)
|
||||||
zcashd_generate
|
zcashd_generate
|
||||||
zcash_rpc zcbenchmark validatelargetx 10
|
zcash_rpc zcbenchmark validatelargetx 2
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
zcashd_stop
|
zcashd_stop
|
||||||
|
|
|
@ -241,6 +241,7 @@ processblock:
|
||||||
// 4) Call CreateNewBlock (which itself calls TestBlockValidity)
|
// 4) Call CreateNewBlock (which itself calls TestBlockValidity)
|
||||||
pblocktemplate = CreateNewBlock(scriptDummy);
|
pblocktemplate = CreateNewBlock(scriptDummy);
|
||||||
pblock = &pblocktemplate->block;
|
pblock = &pblocktemplate->block;
|
||||||
|
pindexPrev = chainActive.Tip();
|
||||||
|
|
||||||
// 5) Call TestBlockValidity again under timing
|
// 5) Call TestBlockValidity again under timing
|
||||||
timer_start();
|
timer_start();
|
||||||
|
|
Loading…
Reference in New Issue