diff options
| author | Suhas Daftuar <[email protected]> | 2015-04-09 13:21:11 -0400 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2015-06-02 13:54:29 -0400 |
| commit | 9be0e6837b878f72bd087ce32b7a2f2ffb2fd544 (patch) | |
| tree | 7c1a9a8c887697e3f87a107ea27448da66abc251 /src/miner.cpp | |
| parent | Merge pull request #6203 (diff) | |
| download | discoin-9be0e6837b878f72bd087ce32b7a2f2ffb2fd544.tar.xz discoin-9be0e6837b878f72bd087ce32b7a2f2ffb2fd544.zip | |
Be stricter in processing unrequested blocks
AcceptBlock will no longer process an unrequested block, unless it has not
been previously processed and has more work than chainActive.Tip()
Diffstat (limited to 'src/miner.cpp')
| -rw-r--r-- | src/miner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/miner.cpp b/src/miner.cpp index dfabfd48d..f5919ca3a 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -434,7 +434,7 @@ static bool ProcessBlockFound(CBlock* pblock, CWallet& wallet, CReserveKey& rese // Process this block the same as if we had received it from another node CValidationState state; - if (!ProcessNewBlock(state, NULL, pblock)) + if (!ProcessNewBlock(state, NULL, pblock, true, NULL)) return error("BitcoinMiner: ProcessNewBlock, block not accepted"); return true; |