diff options
| author | Matt Corallo <[email protected]> | 2016-09-30 18:38:05 -0400 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2016-10-04 13:51:32 -0400 |
| commit | f5efa283931ce1d52c59234b58988a221d42ecb4 (patch) | |
| tree | ce892a16f3048f3a378c8a71092bf4f9be557356 /src/rpc/mining.cpp | |
| parent | Use CValidationInterface from chain logic to notify peer logic (diff) | |
| download | discoin-f5efa283931ce1d52c59234b58988a221d42ecb4.tar.xz discoin-f5efa283931ce1d52c59234b58988a221d42ecb4.zip | |
Remove CConnman parameter from ProcessNewBlock/ActivateBestChain
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 6b13aa5ba..a54931720 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -131,7 +131,7 @@ UniValue generateBlocks(boost::shared_ptr<CReserveScript> coinbaseScript, int nG continue; } CValidationState state; - if (!ProcessNewBlock(state, Params(), NULL, pblock, true, NULL, g_connman.get())) + if (!ProcessNewBlock(state, Params(), NULL, pblock, true, NULL)) throw JSONRPCError(RPC_INTERNAL_ERROR, "ProcessNewBlock, block not accepted"); ++nHeight; blockHashes.push_back(pblock->GetHash().GetHex()); @@ -757,7 +757,7 @@ UniValue submitblock(const UniValue& params, bool fHelp) CValidationState state; submitblock_StateCatcher sc(block.GetHash()); RegisterValidationInterface(&sc); - bool fAccepted = ProcessNewBlock(state, Params(), NULL, &block, true, NULL, g_connman.get()); + bool fAccepted = ProcessNewBlock(state, Params(), NULL, &block, true, NULL); UnregisterValidationInterface(&sc); if (fBlockPresent) { |