Exemple #1
0
        private void Notify(ISyncPeer peer, Transaction transaction)
        {
            var timestamp = new UInt256(_timestamp.EpochSeconds);

            if (_pendingTxThresholdValidator.IsObsolete(timestamp, transaction.Timestamp))
            {
                return;
            }

            Metrics.PendingTransactionsSent++;
            peer.SendNewTransaction(transaction);

            if (_logger.IsTrace)
            {
                _logger.Trace($"Notified {peer.Node.Id} about a transaction: {transaction.Hash}");
            }
        }