Пример #1
0
 /// <summary>
 /// This event is typically triggered when new blocks arrive from network nodes.
 /// The event will be picked up by the miner and tries to validate and add the block.
 /// Then the ValidatedBlockCreated event is triggered.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="ev"></param>
 public bool?PublishUnvalidatedBlockCreated(object sender, BlockCreatedEventArgs ev)
 {
     return(OnUnvalidatedBlockCreated?.Invoke(sender, ev));
 }
Пример #2
0
 public void PublishValidatedBlockCreated(object sender, BlockCreatedEventArgs ev)
 {
     OnValidatedBlockCreated?.Invoke(sender, ev);
 }