Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/register.h
Show All 16 Lines | |||||
/** Register miscellaneous RPC commands */ | /** Register miscellaneous RPC commands */ | ||||
void RegisterMiscRPCCommands(CRPCTable &tableRPC); | void RegisterMiscRPCCommands(CRPCTable &tableRPC); | ||||
/** Register mining RPC commands */ | /** Register mining RPC commands */ | ||||
void RegisterMiningRPCCommands(CRPCTable &tableRPC); | void RegisterMiningRPCCommands(CRPCTable &tableRPC); | ||||
/** Register raw transaction RPC commands */ | /** Register raw transaction RPC commands */ | ||||
void RegisterRawTransactionRPCCommands(CRPCTable &tableRPC); | void RegisterRawTransactionRPCCommands(CRPCTable &tableRPC); | ||||
/** Register ABC RPC commands */ | /** Register ABC RPC commands */ | ||||
void RegisterABCRPCCommands(CRPCTable &tableRPC); | void RegisterABCRPCCommands(CRPCTable &tableRPC); | ||||
/** Register Avalanche RPC commands */ | |||||
void RegisterAvalancheRPCCommands(CRPCTable &tableRPC); | |||||
/** | /** | ||||
* Register all context-free (legacy) RPC commands, except for wallet and dump | * Register all context-free (legacy) RPC commands, except for wallet and dump | ||||
* RPC commands. | * RPC commands. | ||||
*/ | */ | ||||
static inline void RegisterAllContextFreeRPCCommands(CRPCTable &t) { | static inline void RegisterAllContextFreeRPCCommands(CRPCTable &t) { | ||||
RegisterBlockchainRPCCommands(t); | RegisterBlockchainRPCCommands(t); | ||||
RegisterNetRPCCommands(t); | RegisterNetRPCCommands(t); | ||||
RegisterMiscRPCCommands(t); | RegisterMiscRPCCommands(t); | ||||
RegisterMiningRPCCommands(t); | RegisterMiningRPCCommands(t); | ||||
RegisterRawTransactionRPCCommands(t); | RegisterRawTransactionRPCCommands(t); | ||||
RegisterABCRPCCommands(t); | RegisterABCRPCCommands(t); | ||||
RegisterAvalancheRPCCommands(t); | |||||
} | } | ||||
/** | /** | ||||
* Register all context-sensitive RPC commands. | * Register all context-sensitive RPC commands. | ||||
*/ | */ | ||||
static inline void RegisterAllRPCCommands(const Config &config, | static inline void RegisterAllRPCCommands(const Config &config, | ||||
RPCServer &rpcServer, | RPCServer &rpcServer, | ||||
CRPCTable &rpcTable) { | CRPCTable &rpcTable) { | ||||
// TODO Register context-sensitive RPC commands using rpcServer | // TODO Register context-sensitive RPC commands using rpcServer | ||||
RegisterAllContextFreeRPCCommands(rpcTable); | RegisterAllContextFreeRPCCommands(rpcTable); | ||||
} | } | ||||
#endif // BITCOIN_RPC_REGISTER_H | #endif // BITCOIN_RPC_REGISTER_H |