|
67 | 67 | ret.pushKV("type", ToUnderlying(nType)); |
68 | 68 | ret.pushKV("collateralHash", collateralOutpoint.hash.ToString()); |
69 | 69 | ret.pushKV("collateralIndex", (int)collateralOutpoint.n); |
70 | | - ret.pushKV("service", netInfo->GetPrimary().ToStringAddrPort()); |
| 70 | + if (IsServiceDeprecatedRPCEnabled()) { |
| 71 | + ret.pushKV("service", netInfo->GetPrimary().ToStringAddrPort()); |
| 72 | + } |
| 73 | + ret.pushKV("addresses", netInfo->ToJson()); |
71 | 74 | ret.pushKV("ownerAddress", EncodeDestination(PKHash(keyIDOwner))); |
72 | 75 | ret.pushKV("votingAddress", EncodeDestination(PKHash(keyIDVoting))); |
73 | 76 | if (CTxDestination dest; ExtractDestination(scriptPayout, dest)) { |
|
114 | 117 | ret.pushKV("version", nVersion); |
115 | 118 | ret.pushKV("type", ToUnderlying(nType)); |
116 | 119 | ret.pushKV("proTxHash", proTxHash.ToString()); |
117 | | - ret.pushKV("service", netInfo->GetPrimary().ToStringAddrPort()); |
| 120 | + if (IsServiceDeprecatedRPCEnabled()) { |
| 121 | + ret.pushKV("service", netInfo->GetPrimary().ToStringAddrPort()); |
| 122 | + } |
| 123 | + ret.pushKV("addresses", netInfo->ToJson()); |
118 | 124 | if (CTxDestination dest; ExtractDestination(scriptOperatorPayout, dest)) { |
119 | 125 | ret.pushKV("operatorPayoutAddress", EncodeDestination(dest)); |
120 | 126 | } |
|
0 commit comments