mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Merge pull request #1816
b867e40CreateNewBlock: Stick height in coinbase so we pass template sanity check (Luke Dashjr)60755dbsubmitblock: Check for duplicate submissions explicitly (Luke Dashjr)bc6cb41QA RPC tests: Add tests block block proposals (Luke Dashjr)9765a50Implement BIP 23 Block Proposal (Luke Dashjr)3dcbb9bAbstract DecodeHexBlk and BIP22ValidationResult functions out of submitblock (Luke Dashjr)132ea9bminer_tests: Disable checkpoints so they don't fail the subsidy-change test (Luke Dashjr)df08a62TestBlockValidity function for CBlock proposals (used by CreateNewBlock) (Luke Dashjr)4ea1be7CreateNewBlock and miner_tests: Also check generated template is valid by CheckBlockHeader, ContextualCheckBlockHeader, CheckBlock, and ContextualCheckBlock (Luke Dashjr)a48f2d6Abstract context-dependent block checking from acceptance (Luke Dashjr)
This commit is contained in:
@@ -57,6 +57,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
|
||||
uint256 hash;
|
||||
|
||||
LOCK(cs_main);
|
||||
Checkpoints::fEnabled = false;
|
||||
|
||||
// Simple block creation, nothing special yet:
|
||||
BOOST_CHECK(pblocktemplate = CreateNewBlock(scriptPubKey));
|
||||
@@ -259,6 +260,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
|
||||
BOOST_FOREACH(CTransaction *tx, txFirst)
|
||||
delete tx;
|
||||
|
||||
Checkpoints::fEnabled = true;
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
Reference in New Issue
Block a user