diff options
author | Sjors Provoost <sjors@sprovoost.nl> | 2021-12-08 19:17:29 +0700 |
---|---|---|
committer | Sjors Provoost <sjors@sprovoost.nl> | 2021-12-24 16:28:53 +0100 |
commit | 0e3d7c5ee16d5a4c061ab9a57285bceb7899b512 (patch) | |
tree | 6b99fdec1acf9cb787db61f0a8c1d1cab2e5e556 /src/net_processing.h | |
parent | 8d1a3e6498de6087501969a9d243b0697ca3fe97 (diff) |
refactor: drop redundant hash argument from FetchBlock
Diffstat (limited to 'src/net_processing.h')
-rw-r--r-- | src/net_processing.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/net_processing.h b/src/net_processing.h index 6c18e8ddfa..2b22d8ce85 100644 --- a/src/net_processing.h +++ b/src/net_processing.h @@ -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; |