ConstructGetBlocksPayload() public static method

public static ConstructGetBlocksPayload ( ImmutableArray blockLocatorHashes, UInt256 hashStop ) : BitSharp.Network.GetBlocksPayload
blockLocatorHashes ImmutableArray
hashStop UInt256
return BitSharp.Network.GetBlocksPayload
Esempio n. 1
0
        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);
        }