ConstructGetBlocksPayload() 공개 정적인 메소드

public static ConstructGetBlocksPayload ( ImmutableArray blockLocatorHashes, UInt256 hashStop ) : BitSharp.Network.GetBlocksPayload
blockLocatorHashes ImmutableArray
hashStop UInt256
리턴 BitSharp.Network.GetBlocksPayload
예제 #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);
        }