Skip to content

Commit ee62d8e

Browse files
committed
Merge bitcoin#2519: [RPC] Do not register DMN-related RPC commands
82e49a1 [RPC] Do not register DMN-related RPC commands (random-zebra) Pull request description: 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. ACKs for top commit: furszy: utACK 82e49a1 Fuzzbawls: ACK 82e49a1 Tree-SHA512: ae4bec07cce16fbf0eae876e32a13887a5146cb5be2b6d400734dc1e165437d73e3a3aa8ac6066583a6704027850fe04036cdd370689ac7dd670b6043a0c1cc6
2 parents 7403e31 + 82e49a1 commit ee62d8e

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)