This commit is contained in:
jl777
2018-08-15 00:56:14 -11:00
parent ca9af9a1f6
commit 2accae9efd

View File

@@ -172,7 +172,7 @@ std::string FaucetGet(uint64_t txfee)
mtx.vout.push_back(MakeCC1vout(EVAL_FAUCET,CCchange,faucetpk));
mtx.vout.push_back(CTxOut(nValue,CScript() << ParseHex(HexStr(mypk)) << OP_CHECKSIG));
fprintf(stderr,"start at %u\n",(uint32_t)time(NULL));
for (i=0; i<1000; i++)
for (i=0; i<1000000; i++)
{
tmpmtx = mtx;
opret << OP_RETURN << E_MARSHAL(ss << EVAL_FAUCET << 'G' << i);
@@ -182,9 +182,9 @@ std::string FaucetGet(uint64_t txfee)
len >>= 1;
decode_hex(buf,len,(char *)rawhex.c_str());
vcalc_sha256(0,hash,buf,len);
for (j=0; j<32; j++)
fprintf(stderr,"%02x",hash[j]);
fprintf(stderr," ");
//for (j=0; j<32; j++)
// fprintf(stderr,"%02x",hash[j]);
//fprintf(stderr," ");
if ( hash[0] == 0 && hash[31] == 0 )
{
fprintf(stderr,"found valid txid after %d iterations %u\n",i,(uint32_t)time(NULL));