From 2ba9641767f76e8d60d6719bf846eb5d07d007f5 Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Tue, 5 Jul 2016 07:55:35 -0600 Subject: [PATCH] Fix performance test for block verification. --- qa/zcash/performance-measurements.sh | 2 +- src/zcbenchmarks.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/qa/zcash/performance-measurements.sh b/qa/zcash/performance-measurements.sh index 25b79b4b..849fc511 100755 --- a/qa/zcash/performance-measurements.sh +++ b/qa/zcash/performance-measurements.sh @@ -108,7 +108,7 @@ case "$1" in ;; validatelargetx) zcashd_generate - zcash_rpc zcbenchmark validatelargetx 10 + zcash_rpc zcbenchmark validatelargetx 2 ;; *) zcashd_stop diff --git a/src/zcbenchmarks.cpp b/src/zcbenchmarks.cpp index 5e1fe473..185de93a 100644 --- a/src/zcbenchmarks.cpp +++ b/src/zcbenchmarks.cpp @@ -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();