Beispiel #1
0
 private void Handle(NewBlockHashesMessage newBlockHashes)
 {
     foreach ((Keccak Hash, long Number)hint in newBlockHashes.BlockHashes)
     {
         SyncServer.HintBlock(hint.Hash, hint.Number, Node);
     }
 }
 private void Handle(NewBlockHashesMessage newBlockHashes)
 {
     foreach ((Keccak Hash, UInt256 Number)hint in newBlockHashes.BlockHashes)
     {
         SyncManager.HintBlock(hint.Hash, hint.Number, NodeId);
     }
 }
        public void HintNewBlock(Keccak blockHash, long number)
        {
            if (Logger.IsTrace)
            {
                Logger.Trace($"OUT {Counter:D5} HintBlock to {Node:c}");
            }

            NewBlockHashesMessage msg = new NewBlockHashesMessage();

            msg.BlockHashes = new[] { (blockHash, number) };