Skip to content

Commit

Permalink
Add New RPC commands
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoForge committed Jul 6, 2019
1 parent 51affe4 commit c00e30b
Show file tree
Hide file tree
Showing 6 changed files with 1,445 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 3)
define(_CLIENT_VERSION_MINOR, 0)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_BUILD, 50)
define(_CLIENT_VERSION_REVISION, 1)
define(_CLIENT_VERSION_BUILD, 1)
define(_ZC_BUILD_VAL, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, m4_incr(_CLIENT_VERSION_BUILD), m4_eval(_CLIENT_VERSION_BUILD < 50), 1, m4_eval(_CLIENT_VERSION_BUILD - 24), m4_eval(_CLIENT_VERSION_BUILD == 50), 1, , m4_eval(_CLIENT_VERSION_BUILD - 50)))
define(_CLIENT_VERSION_SUFFIX, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, _CLIENT_VERSION_REVISION-beta$1, m4_eval(_CLIENT_VERSION_BUILD < 50), 1, _CLIENT_VERSION_REVISION-rc$1, m4_eval(_CLIENT_VERSION_BUILD == 50), 1, _CLIENT_VERSION_REVISION, _CLIENT_VERSION_REVISION-$1)))
define(_CLIENT_VERSION_IS_RELEASE, true)
Expand Down
2 changes: 2 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ BITCOIN_CORE_H = \
wallet/paymentdisclosure.h \
wallet/paymentdisclosuredb.h \
wallet/rpcwallet.h \
wallet/rpczerowallet.h \
wallet/wallet.h \
wallet/wallet_ismine.h \
wallet/walletdb.h \
Expand Down Expand Up @@ -345,6 +346,7 @@ libbitcoin_wallet_a_SOURCES = \
wallet/rpcdisclosure.cpp \
wallet/rpcdump.cpp \
wallet/rpcwallet.cpp \
wallet/rpczerowallet.cpp \
wallet/wallet.cpp \
wallet/wallet_ismine.cpp \
wallet/walletdb.cpp \
Expand Down
21 changes: 21 additions & 0 deletions src/rpc/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,27 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "z_getpaymentdisclosure", 2},
{ "spork", 1},
{ "spork", 2},
{ "zs_listtransactions", 0},
{ "zs_listtransactions", 1},
{ "zs_listtransactions", 2},
{ "zs_listtransactions", 3},
{ "zs_listtransactions", 4},
{ "zs_listsentbyaddress", 1},
{ "zs_listsentbyaddress", 2},
{ "zs_listsentbyaddress", 3},
{ "zs_listsentbyaddress", 4},
{ "zs_listsentbyaddress", 5},
{ "zs_listreceivedbyaddress", 1},
{ "zs_listreceivedbyaddress", 2},
{ "zs_listreceivedbyaddress", 3},
{ "zs_listreceivedbyaddress", 4},
{ "zs_listreceivedbyaddress", 5},
{ "zs_listspentbyaddress", 1},
{ "zs_listspentbyaddress", 2},
{ "zs_listspentbyaddress", 3},
{ "zs_listspentbyaddress", 4},
{ "zs_listspentbyaddress", 5},

};

class CRPCConvertTable
Expand Down
3 changes: 3 additions & 0 deletions src/rpc/register.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ void RegisterZeronodeRPCCommands(CRPCTable &tableRPC);
void RegisterBudgetRPCCommands(CRPCTable &tableRPC);
/** Register Spork RPC commands */
void RegisterSporkRPCCommands(CRPCTable &tableRPC);
/** Register Experimental RPC commands */
void RegisterZeroExclusiveRPCCommands(CRPCTable &tableRPC);

static inline void RegisterAllCoreRPCCommands(CRPCTable &tableRPC)
{
Expand All @@ -36,6 +38,7 @@ static inline void RegisterAllCoreRPCCommands(CRPCTable &tableRPC)
RegisterZeronodeRPCCommands(tableRPC);
//RegisterBudgetRPCCommands(tableRPC); //Disabled for now
RegisterSporkRPCCommands(tableRPC);
RegisterZeroExclusiveRPCCommands(tableRPC);
}

#endif

0 comments on commit c00e30b

Please sign in to comment.