Skip to content

Commit

Permalink
scripted-diff: Rename rpc/misc.cpp to rpc/node.cpp
Browse files Browse the repository at this point in the history
-BEGIN VERIFY SCRIPT-
 git mv src/rpc/misc.cpp src/rpc/node.cpp
 sed -i 's@rpc/misc.cpp@rpc/node.cpp@g' $(git grep -l misc.cpp)
 sed -i 's,RegisterMiscRPCCommands,RegisterNodeRPCCommands,g' $(git grep -l RegisterMiscRPCCommands)
-END VERIFY SCRIPT-
  • Loading branch information
MacroFake committed May 3, 2022
1 parent fa87eb8 commit fa758f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ libbitcoin_node_a_SOURCES = \
rpc/fees.cpp \
rpc/mempool.cpp \
rpc/mining.cpp \
rpc/misc.cpp \
rpc/node.cpp \
rpc/net.cpp \
rpc/output_script.cpp \
rpc/rawtransaction.cpp \
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/misc.cpp → src/rpc/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ static RPCHelpMan getindexinfo()
};
}

void RegisterMiscRPCCommands(CRPCTable& t)
void RegisterNodeRPCCommands(CRPCTable& t)
{
static const CRPCCommand commands[]{
{"control", &getmemoryinfo},
Expand Down
4 changes: 2 additions & 2 deletions src/rpc/register.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void RegisterBlockchainRPCCommands(CRPCTable &tableRPC);
void RegisterFeeRPCCommands(CRPCTable&);
void RegisterMempoolRPCCommands(CRPCTable&);
void RegisterMiningRPCCommands(CRPCTable &tableRPC);
void RegisterMiscRPCCommands(CRPCTable&);
void RegisterNodeRPCCommands(CRPCTable&);
void RegisterNetRPCCommands(CRPCTable&);
void RegisterOutputScriptRPCCommands(CRPCTable&);
void RegisterRawTransactionRPCCommands(CRPCTable &tableRPC);
Expand All @@ -27,7 +27,7 @@ static inline void RegisterAllCoreRPCCommands(CRPCTable &t)
RegisterFeeRPCCommands(t);
RegisterMempoolRPCCommands(t);
RegisterMiningRPCCommands(t);
RegisterMiscRPCCommands(t);
RegisterNodeRPCCommands(t);
RegisterNetRPCCommands(t);
RegisterOutputScriptRPCCommands(t);
RegisterRawTransactionRPCCommands(t);
Expand Down

0 comments on commit fa758f9

Please sign in to comment.