diff --git a/src/cc/faucet.cpp b/src/cc/faucet.cpp index fd3a8f60f..6306a4797 100644 --- a/src/cc/faucet.cpp +++ b/src/cc/faucet.cpp @@ -170,7 +170,7 @@ int64_t AddFaucetInputs(struct CCcontract_info *cp,CMutableTransaction &mtx,CPub n++; if ( (total > 0 && totalinputs >= total) || (maxinputs > 0 && n >= maxinputs) ) 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"); } return(totalinputs); diff --git a/src/komodo_nSPV.h b/src/komodo_nSPV.h index e9d87091c..048655b9c 100644 --- a/src/komodo_nSPV.h +++ b/src/komodo_nSPV.h @@ -17,11 +17,12 @@ // todo: // 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 - // 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) // bug: under load, fullnode was returning all 0 nServices diff --git a/src/komodo_nSPV_superlite.h b/src/komodo_nSPV_superlite.h index 29d2015b3..bf8eab78d 100644 --- a/src/komodo_nSPV_superlite.h +++ b/src/komodo_nSPV_superlite.h @@ -587,6 +587,7 @@ UniValue NSPV_addressutxos(char *coinaddr,int32_t CCflag,int32_t skipcount) } else sleep(1); result.push_back(Pair("result","error")); result.push_back(Pair("error","no utxos result")); + result.push_back(Pair("lastpeer",NSPV_lastpeer)); return(result); } @@ -623,6 +624,7 @@ UniValue NSPV_addresstxids(char *coinaddr,int32_t CCflag,int32_t skipcount) } else sleep(1); result.push_back(Pair("result","error")); result.push_back(Pair("error","no txid result")); + result.push_back(Pair("lastpeer",NSPV_lastpeer)); return(result); }