Remove pfrom parameter from ProcessNewBlock

This further decouples ProcessNewBlock from networking/peer logic.
This commit is contained in:
Matt Corallo
2016-10-02 11:04:49 -04:00
parent e2e069dabc
commit 7c98ce584e
5 changed files with 29 additions and 18 deletions

View File

@@ -127,7 +127,7 @@ TestChain100Setup::CreateAndProcessBlock(const std::vector<CMutableTransaction>&
while (!CheckProofOfWork(block.GetHash(), block.nBits, chainparams.GetConsensus())) ++block.nNonce;
CValidationState state;
ProcessNewBlock(state, chainparams, NULL, &block, true, NULL, false);
ProcessNewBlock(state, chainparams, &block, true, NULL, NULL);
CBlock result = block;
return result;