Beispiel #1
0
        public void Empty_to_string()
        {
            NewPooledTransactionHashesMessage message
                = new NewPooledTransactionHashesMessage(new Keccak[] { });

            _ = message.ToString();
        }
Beispiel #2
0
        private static void Test(Keccak[] keys)
        {
            NewPooledTransactionHashesMessage           message    = new NewPooledTransactionHashesMessage(keys);
            NewPooledTransactionHashesMessageSerializer serializer = new NewPooledTransactionHashesMessageSerializer();

            SerializerTester.TestZero(serializer, message);
        }
Beispiel #3
0
        protected override void Handle(NewPooledTransactionHashesMessage msg)
        {
            Stopwatch stopwatch = Stopwatch.StartNew();

            _pooledTxsRequestor.RequestTransactionsEth66(Send, msg.Hashes.ToArray());

            stopwatch.Stop();
            if (Logger.IsTrace)
            {
                Logger.Trace($"OUT {Counter:D5} {nameof(NewPooledTransactionHashesMessage)} to {Node:c} " +
                             $"in {stopwatch.Elapsed.TotalMilliseconds}ms");
            }
        }