]> Git Repo - VerusCoin.git/commitdiff
Fix performance test for block verification.
authorSean Bowe <[email protected]>
Tue, 5 Jul 2016 13:55:35 +0000 (07:55 -0600)
committerSean Bowe <[email protected]>
Tue, 5 Jul 2016 13:55:35 +0000 (07:55 -0600)
qa/zcash/performance-measurements.sh
src/zcbenchmarks.cpp

index 25b79b4bc20596b08698c5a06bfb4ea316c02164..849fc511e8288f515ae220c1d765c08f80380595 100755 (executable)
@@ -108,7 +108,7 @@ case "$1" in
                 ;;
             validatelargetx)
                 zcashd_generate
-                zcash_rpc zcbenchmark validatelargetx 10
+                zcash_rpc zcbenchmark validatelargetx 2
                 ;;
             *)
                 zcashd_stop
index 5e1fe4739455fbe82c5d8507e37c93ca7f093086..185de93a81a753602d670b7aa38c4845835b2a7c 100644 (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();
This page took 0.026697 seconds and 4 git commands to generate.