test
This commit is contained in:
@@ -403,6 +403,7 @@ static const CRPCCommand vRPCCommands[] =
|
|||||||
{ "wallet", "z_importwallet", &z_importwallet, true },
|
{ "wallet", "z_importwallet", &z_importwallet, true },
|
||||||
|
|
||||||
{ "wallet", "paxdeposit", &paxdeposit, true }
|
{ "wallet", "paxdeposit", &paxdeposit, true }
|
||||||
|
{ "wallet", "paxwithdraw", &paxwithdraw, true }
|
||||||
#endif // ENABLE_WALLET
|
#endif // ENABLE_WALLET
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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 paxprice(const json_spirit::Array& params, bool fHelp);
|
||||||
extern json_spirit::Value paxprices(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 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 verifychain(const json_spirit::Array& params, bool fHelp);
|
||||||
extern json_spirit::Value getchaintips(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);
|
extern json_spirit::Value invalidateblock(const json_spirit::Array& params, bool fHelp);
|
||||||
|
|||||||
@@ -506,7 +506,7 @@ Value paxdeposit(const Array& params, bool fHelp)
|
|||||||
return wtx.GetHash().GetHex();
|
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;
|
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 )
|
if ( ASSETCHAINS_SYMBOL[0] == 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user