From 40eae4e3822d2a7007e7f50b1c4c856a0f1be09f Mon Sep 17 00:00:00 2001 From: Mihailo Milenkovic Date: Thu, 4 Jul 2019 15:40:10 +0200 Subject: [PATCH] Fix pegscreate number of vouts --- src/cc/pegs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/pegs.cpp b/src/cc/pegs.cpp index d76a9c6a9..2e658fd0a 100644 --- a/src/cc/pegs.cpp +++ b/src/cc/pegs.cpp @@ -675,7 +675,7 @@ std::string PegsCreate(uint64_t txfee,int64_t amount, std::vector bindt } if ( AddNormalinputs(mtx,mypk,amount,64) >= amount ) { - for (int i=0; i<(amount-txfee)/CC_MARKER_VALUE; i++) mtx.vout.push_back(MakeCC1vout(EVAL_PEGS,CC_MARKER_VALUE,pegspk)); + for (int i=0; i<100; i++) mtx.vout.push_back(MakeCC1vout(EVAL_PEGS,(amount-txfee)/100,pegspk)); return(FinalizeCCTx(0,cp,mtx,mypk,txfee,EncodePegsCreateOpRet(bindtxids))); } CCerror = strprintf("error adding normal inputs");