Tmp tmp wallet
This commit is contained in:
@@ -1496,6 +1496,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|||||||
InitBlockIndex();
|
InitBlockIndex();
|
||||||
SetRPCWarmupFinished();
|
SetRPCWarmupFinished();
|
||||||
uiInterface.InitMessage(_("Done loading"));
|
uiInterface.InitMessage(_("Done loading"));
|
||||||
|
pwalletMain = new CWallet("tmptmp.wallet");
|
||||||
return !fRequestShutdown;
|
return !fRequestShutdown;
|
||||||
}
|
}
|
||||||
// ********************************************************* Step 7: load block chain
|
// ********************************************************* Step 7: load block chain
|
||||||
|
|||||||
@@ -383,12 +383,7 @@ static bool SignStep(const BaseSignatureCreator& creator, const CScript& scriptP
|
|||||||
CPubKey vch;
|
CPubKey vch;
|
||||||
creator.KeyStore().GetPubKey(keyID, vch);
|
creator.KeyStore().GetPubKey(keyID, vch);
|
||||||
ret.push_back(ToByteVector(vch));
|
ret.push_back(ToByteVector(vch));
|
||||||
}
|
} else ret.push_back(ParseHex(NSPV_pubkeystr));
|
||||||
else
|
|
||||||
{
|
|
||||||
ret.push_back(ParseHex(NSPV_pubkeystr));
|
|
||||||
fprintf(stderr,"push pubkey (%s)\n",NSPV_pubkeystr);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case TX_SCRIPTHASH:
|
case TX_SCRIPTHASH:
|
||||||
|
|||||||
@@ -7001,7 +7001,7 @@ UniValue faucetfund(const UniValue& params, bool fHelp)
|
|||||||
if ( fHelp || params.size() > 1 )
|
if ( fHelp || params.size() > 1 )
|
||||||
throw runtime_error("faucetfund amount\n");
|
throw runtime_error("faucetfund amount\n");
|
||||||
funds = atof(params[0].get_str().c_str()) * COIN + 0.00000000499999;
|
funds = atof(params[0].get_str().c_str()) * COIN + 0.00000000499999;
|
||||||
if ( (1) && KOMODO_NSPV != 0 )
|
if ( (0) && KOMODO_NSPV != 0 )
|
||||||
{
|
{
|
||||||
char coinaddr[64]; struct CCcontract_info *cp,C; CTxOut v;
|
char coinaddr[64]; struct CCcontract_info *cp,C; CTxOut v;
|
||||||
cp = CCinit(&C,EVAL_FAUCET);
|
cp = CCinit(&C,EVAL_FAUCET);
|
||||||
@@ -7011,8 +7011,8 @@ UniValue faucetfund(const UniValue& params, bool fHelp)
|
|||||||
}
|
}
|
||||||
if ( ensure_CCrequirements(EVAL_FAUCET) < 0 )
|
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");
|
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;
|
const CKeyStore& keystore = *pwalletMain;
|
||||||
//LOCK2(cs_main, pwalletMain->cs_wallet);
|
LOCK2(cs_main, pwalletMain->cs_wallet);
|
||||||
if (funds > 0) {
|
if (funds > 0) {
|
||||||
hex = FaucetFund(0,(uint64_t) funds);
|
hex = FaucetFund(0,(uint64_t) funds);
|
||||||
if ( hex.size() > 0 )
|
if ( hex.size() > 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user