diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2016-10-31 10:03:49 -0400 |
---|---|---|
committer | Suhas Daftuar <sdaftuar@gmail.com> | 2016-11-01 13:20:21 -0400 |
commit | 015865ee9e5dd450ceb6cece489f924aaa1137e3 (patch) | |
tree | 4dd272a3f0c4a0fad6957a8294ab7cdb8bb73993 /src/rpc | |
parent | 82905069bfd763f16a63649eb51ed3a566bca2c5 (diff) | |
download | bitcoin-015865ee9e5dd450ceb6cece489f924aaa1137e3.tar.xz |
Fix compact block handling to not ban if block is invalid
Diffstat (limited to 'src/rpc')
-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 14a61a55dd..e6901bc77e 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)) + if (!ProcessNewBlock(state, Params(), NULL, pblock, true, NULL, false)) throw JSONRPCError(RPC_INTERNAL_ERROR, "ProcessNewBlock, block not accepted"); ++nHeight; blockHashes.push_back(pblock->GetHash().GetHex()); @@ -760,7 +760,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); + bool fAccepted = ProcessNewBlock(state, Params(), NULL, &block, true, NULL, false); UnregisterValidationInterface(&sc); if (fBlockPresent) { |