Exemplo n.º 1
0
 private void Handle(NewBlockMessage newBlock)
 {
     SyncManager.AddNewBlock(newBlock.Block, P2PSession.RemoteNodeId);
 }
 private void Handle(NewBlockMessage newBlockMessage)
 {
     newBlockMessage.Block.TotalDifficulty = (UInt256)newBlockMessage.TotalDifficulty;
     SyncManager.AddNewBlock(newBlockMessage.Block, P2PSession.RemoteNodeId);
 }
 public SyncingContext AfterNewBlockMessage(Block block, ISynchronizationPeer peer)
 {
     block.TotalDifficulty = (UInt256)(block.Difficulty * ((BigInteger)block.Number + 1));
     SyncManager.AddNewBlock(block, peer.Node.Id);
     return(this);
 }