added testtransactions rpc to table

This commit is contained in:
dimxy
2019-04-23 15:02:38 +05:00
parent f341b517a3
commit a8065c0462
2 changed files with 8 additions and 1 deletions

View File

@@ -35,6 +35,10 @@ void RegisterMiningRPCCommands(CRPCTable &tableRPC);
/** Register raw transaction RPC commands */ /** Register raw transaction RPC commands */
void RegisterRawTransactionRPCCommands(CRPCTable &tableRPC); void RegisterRawTransactionRPCCommands(CRPCTable &tableRPC);
/** Register test transaction RPC commands */
void RegisterTesttransactionsRPCCommands(CRPCTable &tableRPC);
static inline void RegisterAllCoreRPCCommands(CRPCTable &tableRPC) static inline void RegisterAllCoreRPCCommands(CRPCTable &tableRPC)
{ {
RegisterBlockchainRPCCommands(tableRPC); RegisterBlockchainRPCCommands(tableRPC);
@@ -42,6 +46,9 @@ static inline void RegisterAllCoreRPCCommands(CRPCTable &tableRPC)
RegisterMiscRPCCommands(tableRPC); RegisterMiscRPCCommands(tableRPC);
RegisterMiningRPCCommands(tableRPC); RegisterMiningRPCCommands(tableRPC);
RegisterRawTransactionRPCCommands(tableRPC); RegisterRawTransactionRPCCommands(tableRPC);
#ifdef TESTMODE
RegisterTesttransactionsRPCCommands(tableRPC);
#endif
} }
#endif #endif

View File

@@ -260,7 +260,7 @@ static const CRPCCommand commands[] =
{ "hidden", "test_pricesmarker", &test_pricesmarker, true } { "hidden", "test_pricesmarker", &test_pricesmarker, true }
}; };
void RegisterBlockchainRPCCommands(CRPCTable &tableRPC) void RegisterTesttransactionsRPCCommands(CRPCTable &tableRPC)
{ {
for (unsigned int vcidx = 0; vcidx < ARRAYLEN(commands); vcidx++) for (unsigned int vcidx = 0; vcidx < ARRAYLEN(commands); vcidx++)
tableRPC.appendCommand(commands[vcidx].name, &commands[vcidx]); tableRPC.appendCommand(commands[vcidx].name, &commands[vcidx]);