mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-13 22:24:05 +01:00
CValidationState framework
This commit is contained in:
committed by
Pieter Wuille
parent
2835080e16
commit
ef3988ca36
@@ -73,7 +73,9 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
|
||||
txFirst.push_back(new CTransaction(pblock->vtx[0]));
|
||||
pblock->hashMerkleRoot = pblock->BuildMerkleTree();
|
||||
pblock->nNonce = blockinfo[i].nonce;
|
||||
assert(ProcessBlock(NULL, pblock));
|
||||
CValidationState state;
|
||||
BOOST_CHECK(ProcessBlock(state, NULL, pblock));
|
||||
BOOST_CHECK(state.IsValid());
|
||||
pblock->hashPrevBlock = pblock->GetHash();
|
||||
}
|
||||
delete pblocktemplate;
|
||||
|
||||
Reference in New Issue
Block a user