public static ConstructGetBlocksPayload ( ImmutableArray |
||
blockLocatorHashes | ImmutableArray |
|
hashStop | UInt256 | |
리턴 | BitSharp.Network.GetBlocksPayload |
public async Task SendGetBlocks(ImmutableArray <UInt256> blockLocatorHashes, UInt256 hashStop) { var getBlocksPayload = Messaging.ConstructGetBlocksPayload(blockLocatorHashes, hashStop); var getBlocksMessage = Messaging.ConstructMessage("getblocks", NetworkEncoder.EncodeGetBlocksPayload(getBlocksPayload)); await SendMessageAsync(getBlocksMessage); }