コード例 #1
0
 private void Handle(NewBlockHashesMessage newBlockHashes)
 {
     foreach ((Keccak Hash, long Number)hint in newBlockHashes.BlockHashes)
     {
         SyncServer.HintBlock(hint.Hash, hint.Number, Node);
     }
 }
コード例 #2
0
 private void Handle(NewBlockHashesMessage newBlockHashes)
 {
     foreach ((Keccak Hash, UInt256 Number)hint in newBlockHashes.BlockHashes)
     {
         SyncManager.HintBlock(hint.Hash, hint.Number, NodeId);
     }
 }
コード例 #3
0
        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) };