diff options
| author | Matt Corallo <[email protected]> | 2016-10-02 11:04:49 -0400 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2016-11-09 11:21:45 -0800 |
| commit | 7c98ce584ec23bcddcba8cdb33efa6547212f6ef (patch) | |
| tree | 4967bdd0c6147d73bc1512cbf79b8f24c07180e5 /src/rpc/mining.cpp | |
| parent | Revert "RPC: Give more details when "generate" fails" (diff) | |
| download | discoin-7c98ce584ec23bcddcba8cdb33efa6547212f6ef.tar.xz discoin-7c98ce584ec23bcddcba8cdb33efa6547212f6ef.zip | |
Remove pfrom parameter from ProcessNewBlock
This further decouples ProcessNewBlock from networking/peer logic.
Diffstat (limited to 'src/rpc/mining.cpp')
| -rw-r--r-- | src/rpc/mining.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 3e91a79a6..d9fe9530a 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -132,7 +132,7 @@ UniValue generateBlocks(boost::shared_ptr<CReserveScript> coinbaseScript, int nG continue; } CValidationState state; - if (!ProcessNewBlock(state, Params(), NULL, pblock, true, NULL, false)) + if (!ProcessNewBlock(state, Params(), pblock, true, NULL, NULL)) throw JSONRPCError(RPC_INTERNAL_ERROR, "ProcessNewBlock, block not accepted"); ++nHeight; blockHashes.push_back(pblock->GetHash().GetHex()); @@ -757,7 +757,7 @@ UniValue submitblock(const JSONRPCRequest& request) CValidationState state; submitblock_StateCatcher sc(block.GetHash()); RegisterValidationInterface(&sc); - bool fAccepted = ProcessNewBlock(state, Params(), NULL, &block, true, NULL, false); + bool fAccepted = ProcessNewBlock(state, Params(), &block, true, NULL, NULL); UnregisterValidationInterface(&sc); if (fBlockPresent) { |