Skip JoinSplit verification before the last checkpoint

Part of #1749
This commit is contained in:
Jack Grigg
2016-11-23 17:04:20 +13:00
parent 8a6c070bfa
commit 6fb8d0c2d6
6 changed files with 66 additions and 33 deletions

View File

@@ -7,6 +7,7 @@
#include "main.h"
#include "test/test_bitcoin.h"
#include "utiltime.h"
#include "zcash/Proof.hpp"
#include <cstdio>
@@ -56,7 +57,8 @@ BOOST_AUTO_TEST_CASE(May15)
// After May 15'th, big blocks are OK:
forkingBlock.nTime = tMay15; // Invalidates PoW
BOOST_CHECK(CheckBlock(forkingBlock, state, false, false));
auto verifier = libzcash::ProofVerifier::Strict();
BOOST_CHECK(CheckBlock(forkingBlock, state, verifier, false, false));
}
SetMockTime(0);