marmara_creditloop
This commit is contained in:
@@ -5656,14 +5656,15 @@ UniValue marmara_info(const UniValue& params, bool fHelp)
|
||||
UniValue marmara_creditloop(const UniValue& params, bool fHelp)
|
||||
{
|
||||
UniValue result(UniValue::VOBJ); uint256 createtxid; std::vector<uint8_t> receiverpub; int64_t amount; int32_t matures; std::string currency;
|
||||
if ( fHelp || params.size() != 5 )
|
||||
if ( fHelp || params.size() != 1 )
|
||||
{
|
||||
// marmaratransfer 039433dc3749aece1bd568f374a45da3b0bc6856990d7da3cd175399577940a775 7.5 MARMARA 2693 e5b1ef8ec90e981d3011c8e024cef869b69af2d4dd6837d1ab1d394d3730b7cb
|
||||
throw runtime_error("marmaratransfer receiverpk amount currency matures batontxid\n");
|
||||
// marmaracreditloop 010ff7f9256cefe3b5dee3d72c0eeae9fc6f34884e6f32ffe5b60916df54a9be
|
||||
throw runtime_error("marmaracreditloop txid\n");
|
||||
}
|
||||
if ( ensure_CCrequirements() < 0 )
|
||||
throw runtime_error("to use CC contracts, you need to launch daemon with valid -pubkey= for an address in your wallet\n");
|
||||
//UniValue MarmaraCrediloop(uint256 batontxid);
|
||||
txid = Parseuint256((char *)params[0].get_str().c_str());
|
||||
result = MarmaraCreditloop(txid);
|
||||
return(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user