mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
refactor: drop redundant hash argument from FetchBlock
This commit is contained in:
@@ -45,12 +45,11 @@ public:
|
||||
/**
|
||||
* Attempt to manually fetch block from a given peer. We must already have the header.
|
||||
*
|
||||
* @param[in] id The peer id
|
||||
* @param[in] hash The block hash
|
||||
* @param[in] pindex The blockindex
|
||||
* @returns Whether a request was successfully made
|
||||
* @param[in] id The peer id
|
||||
* @param[in] block_index The blockindex
|
||||
* @returns Whether a request was successfully made
|
||||
*/
|
||||
virtual bool FetchBlock(NodeId id, const uint256& hash, const CBlockIndex& pindex) = 0;
|
||||
virtual bool FetchBlock(NodeId id, const CBlockIndex& block_index) = 0;
|
||||
|
||||
/** Begin running background tasks, should only be called once */
|
||||
virtual void StartScheduledTasks(CScheduler& scheduler) = 0;
|
||||
|
||||
Reference in New Issue
Block a user