diff options
author | Matt Corallo <git@bluematt.me> | 2016-10-02 12:22:05 -0400 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2016-11-23 16:29:38 -0800 |
commit | 4a6b1f36b773001f6c5a8e1d3d196833e4fb872d (patch) | |
tree | ad3335f52ef392ee170fbefb8829158c3ce943a5 /src/main.h | |
parent | 93566e0c37c5ae104095474fea89f00dcb40f551 (diff) | |
download | bitcoin-4a6b1f36b773001f6c5a8e1d3d196833e4fb872d.tar.xz |
Expose AcceptBlockHeader through main.h
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h index 43c62f6de6..9fb6b298c4 100644 --- a/src/main.h +++ b/src/main.h @@ -230,6 +230,17 @@ static const uint64_t MIN_DISK_SPACE_FOR_BLOCK_FILES = 550 * 1024 * 1024; * @return True if state.IsValid() */ bool ProcessNewBlock(const CChainParams& chainparams, const CBlock* pblock, bool fForceProcessing, const CDiskBlockPos* dbp, bool* fNewBlock); + +/** + * Process incoming block headers. + * + * @param[in] block The block headers themselves + * @param[out] state This may be set to an Error state if any error occurred processing them + * @param[in] chainparams The params for the chain we want to connect to + * @param[out] ppindex If set, the pointer will be set to point to the last new block index object for the given headers + */ +bool ProcessNewBlockHeaders(const std::vector<CBlockHeader>& block, CValidationState& state, const CChainParams& chainparams, CBlockIndex** ppindex=NULL); + /** Check whether enough disk space is available for an incoming block */ bool CheckDiskSpace(uint64_t nAdditionalBytes = 0); /** Open a block file (blk?????.dat) */ |