Browse Source

+print

warmup
jl777 5 years ago
parent
commit
a099933fb8
  1. 2
      src/cc/faucet.cpp
  2. 5
      src/komodo_nSPV.h
  3. 2
      src/komodo_nSPV_superlite.h

2
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);

5
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

2
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);
}

Loading…
Cancel
Save