public static void RegisterBlockPersistEvent(NeoSystem neoSystem) { if (_actor == null) { _actor = neoSystem.ActorSystem.ActorOf(EventWrapper <Blockchain.PersistCompleted> .Props(Blockchain_PersistCompleted)); } }
private void MainForm_Load(object sender, EventArgs e) { //引入插件 Neo.GUIPlugin.PluginTool plugintool = new GUIPlugin.PluginTool(); var api = new Api(); plugintool.LoadDlls(api); plugintool.InitMenu(this.menuStrip1); actor = Program.NeoSystem.ActorSystem.ActorOf(EventWrapper <Blockchain.PersistCompleted> .Props(Blockchain_PersistCompleted)); Program.NeoSystem.Blockchain.Tell(new Blockchain.Register(), actor); Program.NeoSystem.StartNode(Settings.Default.P2P.Port, Settings.Default.P2P.WsPort); }
private void ClaimForm_Load(object sender, EventArgs e) { using (Snapshot snapshot = Blockchain.Singleton.GetSnapshot()) { Fixed8 bonus_available = snapshot.CalculateBonus(Program.CurrentWallet.GetUnclaimedCoins().Select(p => p.Reference)); textBox1.Text = bonus_available.ToString(); if (bonus_available == Fixed8.Zero) { button1.Enabled = false; } CalculateBonusUnavailable(snapshot.Height + 1); } actor = Program.NeoSystem.ActorSystem.ActorOf(EventWrapper <Blockchain.PersistCompleted> .Props(Blockchain_PersistCompleted)); }
private void MainForm_Load(object sender, EventArgs e) { actor = Service.NeoSystem.ActorSystem.ActorOf(EventWrapper <Blockchain.PersistCompleted> .Props(Blockchain_PersistCompleted)); Service.WalletChanged += Service_WalletChanged; }
private void MainForm_Load(object sender, EventArgs e) { actor = Program.NeoSystem.ActorSystem.ActorOf(EventWrapper <Blockchain.PersistCompleted> .Props(Blockchain_PersistCompleted)); Program.NeoSystem.Blockchain.Tell(new Blockchain.Register(), actor); Program.NeoSystem.StartNode(Settings.Default.P2P.Port, Settings.Default.P2P.WsPort); }