diff options
| author | Pieter Wuille <[email protected]> | 2016-11-07 17:59:46 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-11-07 18:11:18 -0800 |
| commit | dc6b9406bdfab2af8c86cb080cb3e6cf8f2385d8 (patch) | |
| tree | 52b9d3a28947a91d627574d370815cc705b63351 /src/rpc/mining.cpp | |
| parent | Merge #9045: Hash P2P messages as they are received instead of at process-time (diff) | |
| parent | Bump the protocol version to distinguish new banning behavior. (diff) | |
| download | discoin-dc6b9406bdfab2af8c86cb080cb3e6cf8f2385d8.tar.xz discoin-dc6b9406bdfab2af8c86cb080cb3e6cf8f2385d8.zip | |
Merge #9026: Fix handling of invalid compact blocks
d4833ff Bump the protocol version to distinguish new banning behavior. (Suhas Daftuar)
88c3549 Fix compact block handling to not ban if block is invalid (Suhas Daftuar)
c93beac [qa] Test that invalid compactblocks don't result in ban (Suhas Daftuar)
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 f418262f0..3e91a79a6 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)) + 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()); @@ -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); + bool fAccepted = ProcessNewBlock(state, Params(), NULL, &block, true, NULL, false); UnregisterValidationInterface(&sc); if (fBlockPresent) { |