Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

fix broadcast getheaders #730

Merged
merged 1 commit into from
Jan 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions neo-cli/CLI/MainService.Network.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ private void OnBroadcastGetBlocksCommand(UInt256 hash)
/// <summary>
/// Process "broadcast getheaders" command
/// </summary>
/// <param name="hash">Hash</param>
/// <param name="index">Index</param>
[ConsoleCommand("broadcast getheaders", Category = "Network Commands")]
private void OnBroadcastGetHeadersCommand(UInt256 hash)
private void OnBroadcastGetHeadersCommand(uint index)
{
OnBroadcastCommand(MessageCommand.GetHeaders, GetBlocksPayload.Create(hash));
OnBroadcastCommand(MessageCommand.GetHeaders, GetBlockByIndexPayload.Create(index));
}

/// <summary>
Expand Down