diff options
| author | Suhas Daftuar <[email protected]> | 2015-12-17 13:45:33 -0500 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2016-02-01 14:29:45 -0500 |
| commit | dbb89dc793b0fc19a0d0ac5c4ef08cc2760b06bf (patch) | |
| tree | 27a83a6970ff5f7e3a8cd56f6efc49d7b622beb8 /src/versionbits.cpp | |
| parent | Merge #7451: Add link to bitcoin whitepaper (diff) | |
| download | discoin-dbb89dc793b0fc19a0d0ac5c4ef08cc2760b06bf.tar.xz discoin-dbb89dc793b0fc19a0d0ac5c4ef08cc2760b06bf.zip | |
Eliminate unnecessary call to CheckBlock
ProcessNewBlock would return failure early if CheckBlock failed, before
calling AcceptBlock. AcceptBlock also calls CheckBlock, and upon failure
would update mapBlockIndex to indicate that a block was failed. By returning
early in ProcessNewBlock, we were not marking blocks that fail a check in
CheckBlock as permanently failed, and thus would continue to re-request and
reprocess them.
Diffstat (limited to 'src/versionbits.cpp')
0 files changed, 0 insertions, 0 deletions