diff options
| author | Matt Corallo <[email protected]> | 2016-12-04 00:23:17 -0800 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2016-12-04 00:23:17 -0800 |
| commit | a13fa4c80f792ffba8a77737754506aa849929af (patch) | |
| tree | 48ed3e70b0770472932cb6ae8cb532fd9c1d8bfc /src/rpc/mining.cpp | |
| parent | Document ConnectBlock connectTrace postconditions (diff) | |
| download | discoin-a13fa4c80f792ffba8a77737754506aa849929af.tar.xz discoin-a13fa4c80f792ffba8a77737754506aa849929af.zip | |
Remove unused CDiskBlockPos* argument from ProcessNewBlock
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 cb22dec34..73797e201 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; } std::shared_ptr<const CBlock> shared_pblock = std::make_shared<const CBlock>(*pblock); - if (!ProcessNewBlock(Params(), shared_pblock, true, NULL, NULL)) + if (!ProcessNewBlock(Params(), shared_pblock, true, NULL)) throw JSONRPCError(RPC_INTERNAL_ERROR, "ProcessNewBlock, block not accepted"); ++nHeight; blockHashes.push_back(pblock->GetHash().GetHex()); @@ -760,7 +760,7 @@ UniValue submitblock(const JSONRPCRequest& request) submitblock_StateCatcher sc(block.GetHash()); RegisterValidationInterface(&sc); - bool fAccepted = ProcessNewBlock(Params(), blockptr, true, NULL, NULL); + bool fAccepted = ProcessNewBlock(Params(), blockptr, true, NULL); UnregisterValidationInterface(&sc); if (fBlockPresent) { |