From 8779e887e2f58406b370a5352360dd2a3f4f6524 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 31 Aug 2018 01:32:36 -1100 Subject: [PATCH] Test --- src/cc/channels.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc/channels.cpp b/src/cc/channels.cpp index 3b3d71729..dec675bc3 100644 --- a/src/cc/channels.cpp +++ b/src/cc/channels.cpp @@ -255,7 +255,7 @@ std::string ChannelStop(uint64_t txfee,CPubKey destpub,uint256 origtxid) std::string ChannelPayment(uint64_t txfee,uint256 prevtxid,uint256 origtxid,int32_t n,uint64_t amount) { - CMutableTransaction mtx; CPubKey mypk,destpub; struct CCcontract_info *cp,C; int32_t prevdepth; + CMutableTransaction mtx; CPubKey mypk,destpub; uint256 secret; struct CCcontract_info *cp,C; int32_t prevdepth; // verify lasttxid and origtxid match and src is me // also verify hashchain depth and amount, set prevdepth cp = CCinit(&C,EVAL_CHANNELS); @@ -273,7 +273,7 @@ std::string ChannelPayment(uint64_t txfee,uint256 prevtxid,uint256 origtxid,int3 std::string ChannelCollect(uint64_t txfee,uint256 paytxid,uint256 origtxid,int32_t n,uint64_t amount) { - CMutableTransaction mtx; CPubKey mypk; struct CCcontract_info *cp,C; int32_t prevdepth; + CMutableTransaction mtx; CPubKey mypk,senderpub; struct CCcontract_info *cp,C; int32_t prevdepth; // verify paytxid and origtxid match and dest is me // also verify hashchain depth and amount cp = CCinit(&C,EVAL_CHANNELS);