This commit is contained in:
jl777
2019-07-10 06:31:28 -11:00
parent 4d3782db24
commit 190b0d62d5

View File

@@ -7002,8 +7002,8 @@ UniValue faucetfund(const UniValue& params, bool fHelp)
throw runtime_error("faucetfund amount\n");
if ( ensure_CCrequirements(EVAL_FAUCET) < 0 )
throw runtime_error("to use CC contracts, you need to launch daemon with valid -pubkey= for an address in your wallet\n");
const CKeyStore& keystore = *pwalletMain;
LOCK2(cs_main, pwalletMain->cs_wallet);
//const CKeyStore& keystore = *pwalletMain;
//LOCK2(cs_main, pwalletMain->cs_wallet);
funds = atof(params[0].get_str().c_str()) * COIN + 0.00000000499999;
if (funds > 0) {
hex = FaucetFund(0,(uint64_t) funds);