Esempio n. 1
0
 void Instance_NewBlock(BlockInfo obj)
 {
     StopMining();
     TryGetWork();
     StartMining();
 }
Esempio n. 2
0
 private void client_NewBlock(MessageReceivedEventArgs e, BlockInfo obj)
 {
     if (NewBlock != null)
         NewBlock(obj);
 }
Esempio n. 3
0
 void Instance_NewBlock(BlockInfo obj)
 {
     Log(string.Format("New Block: {0} ({1})", obj.BlockId, obj.Hash));
     SafeInvoke(() => // todo
     {
         stat_tbBlockCount.Text = obj.BlockId.ToString();
         stat_tbLastBlockTime.Text = obj.BlockTime.ToLocalTime().ToLongTimeString();
     });
 }