示例#1
0
        /// <inheritdoc />
        public override async Task Handle(MemPoolMessage message, IPeer sender)
        {
            var hashes = _transactionPool
                         .Take(InventoryPayload.MaxHashes)
                         .Select(tx => tx.Hash)
                         .ToArray();

            await sender.Send(new InventoryMessage(InventoryType.Transaction, hashes));
        }