Skip to content

Commit 82e49a1

Browse files
committed
[RPC] Do not register DMN-related RPC commands
These commands cannot be used before v6.0 NU. Their name (and category) is likely going to change (see issue bitcoin#2385) before v6.0 release. So, it is better to just disable them for now (for release 5.3). I kept the registration on RegTest, so we can keep running the functional tests.
1 parent e512eac commit 82e49a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/rpc/rpcevo.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,11 @@ static const CRPCCommand commands[] =
993993

994994
void RegisterEvoRPCCommands(CRPCTable &tableRPC)
995995
{
996+
if (!Params().IsRegTestNet()) {
997+
// Disabled before PIVX v6.0
998+
return;
999+
}
1000+
9961001
for (unsigned int vcidx = 0; vcidx < ARRAYLEN(commands); vcidx++) {
9971002
tableRPC.appendCommand(commands[vcidx].name, &commands[vcidx]);
9981003
}

0 commit comments

Comments
 (0)