void Instance_NewBlock(BlockInfo obj) { StopMining(); TryGetWork(); StartMining(); }
private void client_NewBlock(MessageReceivedEventArgs e, BlockInfo obj) { if (NewBlock != null) NewBlock(obj); }
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(); }); }