rpc: use peer_id, block_hash for FetchBlock

This commit is contained in:
Sjors Provoost
2021-12-10 20:12:05 +07:00
parent 34d5399211
commit 923312fbf6
4 changed files with 16 additions and 16 deletions

View File

@@ -45,11 +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] peer_id The peer id
* @param[in] block_index The blockindex
* @returns std::nullopt if a request was successfully made, otherwise an error message
*/
virtual std::optional<std::string> FetchBlock(NodeId id, const CBlockIndex& block_index) = 0;
virtual std::optional<std::string> FetchBlock(NodeId peer_id, const CBlockIndex& block_index) = 0;
/** Begin running background tasks, should only be called once */
virtual void StartScheduledTasks(CScheduler& scheduler) = 0;