This commit is contained in:
jl777
2019-07-13 07:25:00 -11:00
parent ea16319e47
commit a099933fb8
3 changed files with 6 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ int64_t AddFaucetInputs(struct CCcontract_info *cp,CMutableTransaction &mtx,CPub
n++; n++;
if ( (total > 0 && totalinputs >= total) || (maxinputs > 0 && n >= maxinputs) ) if ( (total > 0 && totalinputs >= total) || (maxinputs > 0 && n >= maxinputs) )
break; break;
} else fprintf(stderr,"nValue too small or already spent in mempool\n"); } else fprintf(stderr,"nValue %.8f too small or already spent in mempool\n",(double)nValue/COIN);
} else fprintf(stderr,"couldnt get tx\n"); } else fprintf(stderr,"couldnt get tx\n");
} }
return(totalinputs); return(totalinputs);

View File

@@ -17,11 +17,12 @@
// todo: // todo:
// myprivkey, scrub all destination buffers // myprivkey, scrub all destination buffers
// new p2p messages: getrawmempool, getaddresstxids // new p2p messages: getrawmempool and support myIsutxo_spentinmempool and mytxid_inmempool
// change skipcount to int32_t
// make req for utxo/txid more sane?
// headers "sync" make sure it connects to prior blocks to notarization. use getinfo hdrht to get missing hdrs // headers "sync" make sure it connects to prior blocks to notarization. use getinfo hdrht to get missing hdrs
// make sure to sanity check all vector lengths on receipt // make sure to sanity check all vector lengths on receipt
// make sure no files are updated (this is to allow nSPV=1 and later nSPV=0 without affecting database) // make sure no files are updated (this is to allow nSPV=1 and later nSPV=0 without affecting database)
// bug: under load, fullnode was returning all 0 nServices // bug: under load, fullnode was returning all 0 nServices

View File

@@ -587,6 +587,7 @@ UniValue NSPV_addressutxos(char *coinaddr,int32_t CCflag,int32_t skipcount)
} else sleep(1); } else sleep(1);
result.push_back(Pair("result","error")); result.push_back(Pair("result","error"));
result.push_back(Pair("error","no utxos result")); result.push_back(Pair("error","no utxos result"));
result.push_back(Pair("lastpeer",NSPV_lastpeer));
return(result); return(result);
} }
@@ -623,6 +624,7 @@ UniValue NSPV_addresstxids(char *coinaddr,int32_t CCflag,int32_t skipcount)
} else sleep(1); } else sleep(1);
result.push_back(Pair("result","error")); result.push_back(Pair("result","error"));
result.push_back(Pair("error","no txid result")); result.push_back(Pair("error","no txid result"));
result.push_back(Pair("lastpeer",NSPV_lastpeer));
return(result); return(result);
} }