From 09bff6c967f14bb7a7ae61607d4566f5d48f23bd Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 15 Aug 2018 01:18:39 -1100 Subject: [PATCH] Test --- src/cc/faucet.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cc/faucet.cpp b/src/cc/faucet.cpp index dedbbcf3f..dd3b75399 100644 --- a/src/cc/faucet.cpp +++ b/src/cc/faucet.cpp @@ -158,7 +158,7 @@ int64_t AddFaucetInputs(struct CCcontract_info *cp,CMutableTransaction &mtx,CPub std::string FaucetGet(uint64_t txfee) { - CMutableTransaction mtx,tmpmtx; CPubKey mypk,faucetpk; CScript opret; int64_t inputs,CCchange=0,nValue=FAUCETSIZE; struct CCcontract_info *cp,C; std::string rawhex; int32_t i,j,len; uint8_t buf[32768]; bits256 hash; + CMutableTransaction mtx,tmpmtx; CPubKey mypk,faucetpk; int64_t inputs,CCchange=0,nValue=FAUCETSIZE; struct CCcontract_info *cp,C; std::string rawhex; int32_t i,j,len; uint8_t buf[32768]; bits256 hash; cp = CCinit(&C,EVAL_FAUCET); if ( txfee == 0 ) txfee = 10000; @@ -175,8 +175,8 @@ std::string FaucetGet(uint64_t txfee) for (i=0; i<1000000; i++) { tmpmtx = mtx; - opret << OP_RETURN << E_MARSHAL(ss << EVAL_FAUCET << 'G' << i); - rawhex = FinalizeCCTx(-1LL,cp,tmpmtx,mypk,txfee,opret); // signature changes each time + //opret << OP_RETURN << E_MARSHAL(ss << EVAL_FAUCET << 'G' << i); + rawhex = FinalizeCCTx(-1LL,cp,tmpmtx,mypk,txfee,OP_RETURN << E_MARSHAL(ss << EVAL_FAUCET << 'G' << i)); // signature changes each time if ( (len= (int32_t)rawhex.size()) > 0 && len < 65536 ) { len >>= 1;