diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2016-10-31 10:03:49 -0400 |
---|---|---|
committer | Suhas Daftuar <sdaftuar@gmail.com> | 2016-11-03 13:07:12 -0400 |
commit | 88c35491ab19f9afdf9b3fa9356a072f70ef2f55 (patch) | |
tree | 979296a970eea7001a5133bb792bda690bcb428c /src/main.h | |
parent | c93beac43fa66c8431e3952283edb5be8c65606c (diff) | |
download | bitcoin-88c35491ab19f9afdf9b3fa9356a072f70ef2f55.tar.xz |
Fix compact block handling to not ban if block is invalid
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h index e80314a64b..9343330587 100644 --- a/src/main.h +++ b/src/main.h @@ -223,7 +223,7 @@ static const uint64_t MIN_DISK_SPACE_FOR_BLOCK_FILES = 550 * 1024 * 1024; * @param[out] dbp The already known disk position of pblock, or NULL if not yet stored. * @return True if state.IsValid() */ -bool ProcessNewBlock(CValidationState& state, const CChainParams& chainparams, CNode* pfrom, const CBlock* pblock, bool fForceProcessing, const CDiskBlockPos* dbp); +bool ProcessNewBlock(CValidationState& state, const CChainParams& chainparams, CNode* pfrom, const CBlock* pblock, bool fForceProcessing, const CDiskBlockPos* dbp, bool fMayBanPeerIfInvalid); /** Check whether enough disk space is available for an incoming block */ bool CheckDiskSpace(uint64_t nAdditionalBytes = 0); /** Open a block file (blk?????.dat) */ |