diff --git a/neo-cli/CLI/MainService.Network.cs b/neo-cli/CLI/MainService.Network.cs index b26f41ecf..a167f1424 100644 --- a/neo-cli/CLI/MainService.Network.cs +++ b/neo-cli/CLI/MainService.Network.cs @@ -141,7 +141,7 @@ private void OnRelayCommand(JObject jsonObjectToRelay) return; } tx.Witnesses = context.GetWitnesses(); - NeoSystem.LocalNode.Tell(new LocalNode.Relay { Inventory = tx }); + NeoSystem.Blockchain.Tell(tx); Console.WriteLine($"Data relay success, the hash is shown as follows:{Environment.NewLine}{tx.Hash}"); } catch (Exception e) diff --git a/neo-cli/CLI/MainService.Wallet.cs b/neo-cli/CLI/MainService.Wallet.cs index f0ab5eea7..5ebc7a728 100644 --- a/neo-cli/CLI/MainService.Wallet.cs +++ b/neo-cli/CLI/MainService.Wallet.cs @@ -432,7 +432,7 @@ private void OnSendCommand(UInt160 asset, UInt160 to, string amount) if (context.Completed) { tx.Witnesses = context.GetWitnesses(); - NeoSystem.LocalNode.Tell(new LocalNode.Relay { Inventory = tx }); + NeoSystem.Blockchain.Tell(tx); Console.WriteLine($"TXID: {tx.Hash}"); } else @@ -534,7 +534,7 @@ private void SignAndSendTx(Transaction tx) { tx.Witnesses = context.GetWitnesses(); - NeoSystem.LocalNode.Tell(new LocalNode.Relay { Inventory = tx }); + NeoSystem.Blockchain.Tell(tx); msg = $"Signed and relayed transaction with hash={tx.Hash}"; Console.WriteLine(msg);