mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Merge #9375: Relay compact block messages prior to full block connection
02ee4ebMake most_recent_compact_block a pointer to a const (Matt Corallo)73666adAdd comment to describe callers to ActivateBestChain (Matt Corallo)962f7f0Call ActivateBestChain without cs_main/with most_recent_block (Matt Corallo)0df777dUse a temp pindex to avoid a const_cast in ProcessNewBlockHeaders (Matt Corallo)c1ae4fcAvoid holding cs_most_recent_block while calling ReadBlockFromDisk (Matt Corallo)9eb67f5Ensure we meet the BIP 152 old-relay-types response requirements (Matt Corallo)5749a85Cache most-recently-connected compact block (Matt Corallo)9eaec08Cache most-recently-announced block's shared_ptr (Matt Corallo)c802092Relay compact block messages prior to full block connection (Matt Corallo)6987219Add a CValidationInterface::NewPoWValidBlock callback (Matt Corallo)180586fCall AcceptBlock with the block's shared_ptr instead of CBlock& (Matt Corallo)8baaba6[qa] Avoid race in preciousblock test. (Matt Corallo)9a0b2f4[qa] Make compact blocks test construction using fetch methods (Matt Corallo)8017547Make CBlockIndex*es in net_processing const (Matt Corallo)
This commit is contained in:
@@ -246,7 +246,7 @@ bool ProcessNewBlock(const CChainParams& chainparams, const std::shared_ptr<cons
|
||||
* @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);
|
||||
bool ProcessNewBlockHeaders(const std::vector<CBlockHeader>& block, CValidationState& state, const CChainParams& chainparams, const CBlockIndex** ppindex=NULL);
|
||||
|
||||
/** Check whether enough disk space is available for an incoming block */
|
||||
bool CheckDiskSpace(uint64_t nAdditionalBytes = 0);
|
||||
|
||||
Reference in New Issue
Block a user