Browse Source

Faucet info

metaverse
jl777 6 years ago
parent
commit
096f8ed830
  1. 2
      src/cc/faucet.cpp
  2. 1
      src/rpcserver.cpp
  3. 1
      src/rpcserver.h

2
src/cc/faucet.cpp

@ -189,7 +189,7 @@ std::string FaucetFund(uint64_t txfee,uint64_t funds)
UniValue FaucetInfo()
{
UniValue result(UniValue::VOBJ);
UniValue result(UniValue::VOBJ); char numstr[64];
CMutableTransaction mtx; CPubKey faucetpk; struct CCcontract_info *cp,C; uint64_t funding;
result.push_back(Pair("result","success"));
result.push_back(Pair("name","Faucet"));

1
src/rpcserver.cpp

@ -363,6 +363,7 @@ static const CRPCCommand vRPCCommands[] =
{ "rewards", "rewardsaddress", &rewardsaddress, true },
/* faucet */
{ "faucet", "faucetinfo", &faucetinfo, true },
{ "faucet", "faucetfund", &faucetfund, true },
{ "faucet", "faucetget", &faucetget, true },
{ "faucet", "faucetaddress", &faucetaddress, true },

1
src/rpcserver.h

@ -226,6 +226,7 @@ extern UniValue tokenfillswap(const UniValue& params, bool fHelp);
extern UniValue faucetfund(const UniValue& params, bool fHelp);
extern UniValue faucetget(const UniValue& params, bool fHelp);
extern UniValue faucetaddress(const UniValue& params, bool fHelp);
extern UniValue faucetinfo(const UniValue& params, bool fHelp);
extern UniValue rewardsinfo(const UniValue& params, bool fHelp);
extern UniValue rewardslist(const UniValue& params, bool fHelp);
extern UniValue rewardsaddress(const UniValue& params, bool fHelp);

Loading…
Cancel
Save