From 372625beb6077f0fec354495522d071331bede31 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 24 Jul 2018 09:09:32 -1100 Subject: [PATCH] Test --- src/cc/lotto.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc/lotto.cpp b/src/cc/lotto.cpp index 079cf5793..af6222b5d 100644 --- a/src/cc/lotto.cpp +++ b/src/cc/lotto.cpp @@ -165,7 +165,7 @@ std::string LottoTicket(uint64_t txfee,uint64_t numtickets) std::string LottoWinner(uint64_t txfee) { - CMutableTransaction mtx; CPubKey mypk,Lottopk; CScript opret; struct CCcontract_info *cp,C; + CMutableTransaction mtx; CPubKey mypk,Lottopk; uint64_t winnings = 0; CScript opret; struct CCcontract_info *cp,C; cp = CCinit(&C,EVAL_LOTTO); if ( txfee == 0 ) txfee = 10000; @@ -173,7 +173,7 @@ std::string LottoWinner(uint64_t txfee) Lottopk = GetUnspendable(cp,0); if ( AddNormalinputs(mtx,mypk,txfee,64) > 0 ) { - mtx.vout.push_back(MakeCC1vout(EVAL_LOTTO,funds,Lottopk)); + mtx.vout.push_back(MakeCC1vout(EVAL_LOTTO,winnings,Lottopk)); return(FinalizeCCTx(cp,mtx,mypk,txfee,opret)); } return(0);