This commit is contained in:
jl777
2016-11-04 19:12:41 -03:00
parent c5dec2a575
commit 597b9c2f9e
3 changed files with 3 additions and 1 deletions

View File

@@ -403,6 +403,7 @@ static const CRPCCommand vRPCCommands[] =
{ "wallet", "z_importwallet", &z_importwallet, true },
{ "wallet", "paxdeposit", &paxdeposit, true }
{ "wallet", "paxwithdraw", &paxwithdraw, true }
#endif // ENABLE_WALLET
};

View File

@@ -247,6 +247,7 @@ extern json_spirit::Value notaries(const json_spirit::Array& params, bool fHelp)
extern json_spirit::Value paxprice(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value paxprices(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value paxdeposit(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value paxwithdraw(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value verifychain(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value getchaintips(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value invalidateblock(const json_spirit::Array& params, bool fHelp);

View File

@@ -506,7 +506,7 @@ Value paxdeposit(const Array& params, bool fHelp)
return wtx.GetHash().GetHex();
}
Value paxwithdraw(const Value& params, bool fHelp)
Value paxwithdraw(const Array& params, bool fHelp)
{
CWalletTx wtx; std::string dest; uint64_t komodoshis = 0; char destaddr[64]; uint8_t i,pubkey33[33]; bool fSubtractFeeFromAmount = false;
if ( ASSETCHAINS_SYMBOL[0] == 0 )