@@ -184,11 +184,21 @@ static RPCArg GetRpcArg(const std::string& strParamName)
184184 " Platform P2P node ID, derived from P2P public key." }
185185 },
186186 {" platformP2PPort" ,
187+ {" platformP2PPort" , RPCArg::Type::STR, RPCArg::Optional::NO,
188+ " Address in the form \" ADDR:PORT\" used by Platform for peer-to-peer connection.\n "
189+ " Must be unique on the network. Can be set to an empty string, which will require a ProUpServTx afterwards." }
190+ },
191+ {" platformP2PPort_update" ,
187192 {" platformP2PPort" , RPCArg::Type::STR, RPCArg::Optional::NO,
188193 " Address in the form \" ADDR:PORT\" used by Platform for peer-to-peer connection.\n "
189194 " Must be unique on the network." }
190195 },
191196 {" platformHTTPPort" ,
197+ {" platformHTTPPort" , RPCArg::Type::STR, RPCArg::Optional::NO,
198+ " Address in the form \" ADDR:PORT\" used by Platform for their HTTPS API.\n "
199+ " Must be unique on the network. Can be set to an empty string, which will require a ProUpServTx afterwards." }
200+ },
201+ {" platformHTTPPort_update" ,
192202 {" platformHTTPPort" , RPCArg::Type::STR, RPCArg::Optional::NO,
193203 " Address in the form \" ADDR:PORT\" used by Platform for their HTTPS API.\n "
194204 " Must be unique on the network." }
@@ -736,7 +746,7 @@ static UniValue protx_register_common_wrapper(const JSONRPCRequest& request,
736746 }
737747 ptx.platformNodeID .SetHex (request.params [paramIdx + 6 ].get_str ());
738748
739- ProcessNetInfoPlatform (ptx, request.params [paramIdx + 7 ], request.params [paramIdx + 8 ]);
749+ ProcessNetInfoPlatform (ptx, request.params [paramIdx + 7 ], request.params [paramIdx + 8 ], /* optional= */ true );
740750
741751 paramIdx += 3 ;
742752 }
@@ -944,8 +954,8 @@ static RPCHelpMan protx_update_service_evo()
944954 GetRpcArg (" coreP2PAddrs_update" ),
945955 GetRpcArg (" operatorKey" ),
946956 GetRpcArg (" platformNodeID" ),
947- GetRpcArg (" platformP2PPort " ),
948- GetRpcArg (" platformHTTPPort " ),
957+ GetRpcArg (" platformP2PPort_update " ),
958+ GetRpcArg (" platformHTTPPort_update " ),
949959 GetRpcArg (" operatorPayoutAddress" ),
950960 GetRpcArg (" feeSourceAddress" ),
951961 GetRpcArg (" submit" ),
@@ -1006,7 +1016,7 @@ static UniValue protx_update_service_common_wrapper(const JSONRPCRequest& reques
10061016 }
10071017 ptx.platformNodeID .SetHex (request.params [paramIdx].get_str ());
10081018
1009- ProcessNetInfoPlatform (ptx, request.params [paramIdx + 1 ], request.params [paramIdx + 2 ]);
1019+ ProcessNetInfoPlatform (ptx, request.params [paramIdx + 1 ], request.params [paramIdx + 2 ], /* optional= */ false );
10101020
10111021 paramIdx += 3 ;
10121022 }
0 commit comments