From d67c9c30ede406c3b0b4781994699877b0bf20a8 Mon Sep 17 00:00:00 2001 From: Luchuan Date: Thu, 28 May 2020 02:34:44 +0800 Subject: [PATCH] fix relay tx (#249) --- src/RpcServer/RpcServer.Wallet.cs | 2 +- src/RpcServer/RpcServer.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RpcServer/RpcServer.Wallet.cs b/src/RpcServer/RpcServer.Wallet.cs index da087cdf7..b0b0f4f74 100644 --- a/src/RpcServer/RpcServer.Wallet.cs +++ b/src/RpcServer/RpcServer.Wallet.cs @@ -285,7 +285,7 @@ private JObject SignAndRelay(Transaction tx) if (context.Completed) { tx.Witnesses = context.GetWitnesses(); - system.LocalNode.Tell(new LocalNode.Relay { Inventory = tx }); + system.Blockchain.Tell(tx); return tx.ToJson(); } else diff --git a/src/RpcServer/RpcServer.csproj b/src/RpcServer/RpcServer.csproj index 1bfb1be70..23b492203 100644 --- a/src/RpcServer/RpcServer.csproj +++ b/src/RpcServer/RpcServer.csproj @@ -15,7 +15,7 @@ - +