From 2b349eff8c72746e53e2d4514869048e5d0a5b29 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 31 Aug 2018 01:37:27 -1100 Subject: [PATCH] Fix --- src/wallet/rpcwallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 30ee3573c..3327f2fcc 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -5148,7 +5148,7 @@ UniValue channelspayment(const UniValue& params, bool fHelp) origtxid = Parseuint256((char *)params[1].get_str().c_str()); n = atoi((char *)params[2].get_str().c_str()); amount = atoi((char *)params[3].get_str().c_str()); - hex = ChannelPayment(0,stoptxid,origtxid,n,amount); + hex = ChannelPayment(0,prevtxid,origtxid,n,amount); if ( hex.size() > 0 ) { result.push_back(Pair("result", "success"));