|
72 | 72 | ret.pushKV("type", ToUnderlying(nType)); |
73 | 73 | ret.pushKV("collateralHash", collateralOutpoint.hash.ToString()); |
74 | 74 | ret.pushKV("collateralIndex", collateralOutpoint.n); |
75 | | - if (IsServiceDeprecatedRPCEnabled()) { |
76 | | - ret.pushKV("service", netInfo->GetPrimary().ToStringAddrPort()); |
77 | | - } |
| 75 | + ret.pushKV("service", netInfo->GetPrimary().ToStringAddrPort()); |
78 | 76 | ret.pushKV("addresses", GetNetInfoWithLegacyFields(*this, nType)); |
79 | 77 | ret.pushKV("ownerAddress", EncodeDestination(PKHash(keyIDOwner))); |
80 | 78 | ret.pushKV("votingAddress", EncodeDestination(PKHash(keyIDVoting))); |
|
122 | 120 | ret.pushKV("version", nVersion); |
123 | 121 | ret.pushKV("type", ToUnderlying(nType)); |
124 | 122 | ret.pushKV("proTxHash", proTxHash.ToString()); |
125 | | - if (IsServiceDeprecatedRPCEnabled()) { |
126 | | - ret.pushKV("service", netInfo->GetPrimary().ToStringAddrPort()); |
127 | | - } |
| 123 | + ret.pushKV("service", netInfo->GetPrimary().ToStringAddrPort()); |
128 | 124 | ret.pushKV("addresses", GetNetInfoWithLegacyFields(*this, nType)); |
129 | 125 | if (CTxDestination dest; ExtractDestination(scriptOperatorPayout, dest)) { |
130 | 126 | ret.pushKV("operatorPayoutAddress", EncodeDestination(dest)); |
|
162 | 158 | obj.pushKV("nType", ToUnderlying(nType)); |
163 | 159 | obj.pushKV("proRegTxHash", proRegTxHash.ToString()); |
164 | 160 | obj.pushKV("confirmedHash", confirmedHash.ToString()); |
165 | | - if (IsServiceDeprecatedRPCEnabled()) { |
166 | | - obj.pushKV("service", netInfo->GetPrimary().ToStringAddrPort()); |
167 | | - } |
| 161 | + obj.pushKV("service", netInfo->GetPrimary().ToStringAddrPort()); |
168 | 162 | obj.pushKV("addresses", GetNetInfoWithLegacyFields(*this, nType)); |
169 | 163 | obj.pushKV("pubKeyOperator", pubKeyOperator.ToString()); |
170 | 164 | obj.pushKV("votingAddress", EncodeDestination(PKHash(keyIDVoting))); |
|
0 commit comments