payments Airdrop. Working airdrop and syncs TESTHC chain.
This commit is contained in:
@@ -5632,14 +5632,14 @@ UniValue payments_create(const UniValue& params, bool fHelp)
|
||||
UniValue payments_airdrop(const UniValue& params, bool fHelp)
|
||||
{
|
||||
struct CCcontract_info *cp,C;
|
||||
//if ( fHelp || params.size() != 1 )
|
||||
// throw runtime_error("paymentscreate \"[lockedblocks,minamount,%22paytxid0%22,...,%22paytxidN%22]\"\n");
|
||||
//if ( ensure_CCrequirements(EVAL_PAYMENTS) < 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;
|
||||
if ( fHelp || params.size() != 1 )
|
||||
throw runtime_error("paymentsairdrop \"[lockedblocks,minamount,top,%22paytxid0%22,...,%22paytxidN%22]\"\n");
|
||||
if ( ensure_CCrequirements(EVAL_PAYMENTS) < 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);
|
||||
//cp = CCinit(&C,EVAL_PAYMENTS);
|
||||
return(PaymentsAirdrop(0,(char *)params[0].get_str().c_str()));
|
||||
cp = CCinit(&C,EVAL_PAYMENTS);
|
||||
return(PaymentsAirdrop(cp,(char *)params[0].get_str().c_str()));
|
||||
}
|
||||
|
||||
UniValue payments_info(const UniValue& params, bool fHelp)
|
||||
|
||||
Reference in New Issue
Block a user