mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Merge #8865: Decouple peer-processing-logic from block-connection-logic
a9aec5cUse BlockChecked signal to send reject messages from mapBlockSource (Matt Corallo)7565e03Remove SyncWithWallets wrapper function (Matt Corallo)12ee1feAlways call UpdatedBlockTip, even if blocks were only disconnected (Matt Corallo)f5efa28Remove CConnman parameter from ProcessNewBlock/ActivateBestChain (Matt Corallo)fef1010Use CValidationInterface from chain logic to notify peer logic (Matt Corallo)aefcb7bMove net-processing logic definitions together in main.h (Matt Corallo)0278fb5Remove duplicate nBlocksEstimate cmp (we already checked IsIBD()) (Matt Corallo)87e7d72Make validationinterface.UpdatedBlockTip more verbose (Matt Corallo)
This commit is contained in:
@@ -224,7 +224,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
|
||||
pblock->hashMerkleRoot = BlockMerkleRoot(*pblock);
|
||||
pblock->nNonce = blockinfo[i].nonce;
|
||||
CValidationState state;
|
||||
BOOST_CHECK(ProcessNewBlock(state, chainparams, NULL, pblock, true, NULL, connman));
|
||||
BOOST_CHECK(ProcessNewBlock(state, chainparams, NULL, pblock, true, NULL));
|
||||
BOOST_CHECK(state.IsValid());
|
||||
pblock->hashPrevBlock = pblock->GetHash();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user