diff --git a/beacon_chain/rpc/rest_node_api.nim b/beacon_chain/rpc/rest_node_api.nim index d74d72d39e..ceb4bbc7c0 100644 --- a/beacon_chain/rpc/rest_node_api.nim +++ b/beacon_chain/rpc/rest_node_api.nim @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Status Research & Development GmbH +# Copyright (c) 2021-2025 Status Research & Development GmbH # Licensed and distributed under either of # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). @@ -164,7 +164,8 @@ proc installNodeApiHandlers*(router: var RestRouter, node: BeaconNode) = metadata: ( seq_number: node.network.metadata.seq_number, syncnets: to0xHex(node.network.metadata.syncnets.bytes), - attnets: to0xHex(node.network.metadata.attnets.bytes) + attnets: to0xHex(node.network.metadata.attnets.bytes), + custody_group_count: node.network.metadata.custody_group_count ) ) ) diff --git a/beacon_chain/spec/eth2_apis/rest_types.nim b/beacon_chain/spec/eth2_apis/rest_types.nim index 3f8abe45b4..83291baf80 100644 --- a/beacon_chain/spec/eth2_apis/rest_types.nim +++ b/beacon_chain/spec/eth2_apis/rest_types.nim @@ -274,6 +274,7 @@ type seq_number*: string syncnets*: string attnets*: string + custody_group_count*: string RestNetworkIdentity* = object peer_id*: string diff --git a/ncli/resttest-rules.json b/ncli/resttest-rules.json index 97811d0352..3f26bc8be4 100644 --- a/ncli/resttest-rules.json +++ b/ncli/resttest-rules.json @@ -4265,7 +4265,7 @@ "response": { "status": {"operator": "equals", "value": "200"}, "headers": [{"key": "Content-Type", "value": "application/json", "operator": "equals"}], - "body": [{"operator": "jstructcmps", "start": ["data"], "value": {"peer_id": "", "enr": "", "p2p_addresses": [""], "discovery_addresses": [""], "metadata": {"seq_number": "", "attnets": "", "syncnets": ""}}}] + "body": [{"operator": "jstructcmps", "start": ["data"], "value": {"peer_id": "", "enr": "", "p2p_addresses": [""], "discovery_addresses": [""], "metadata": {"seq_number": "", "attnets": "", "syncnets": "", "custody_group_count": ""}}}] } }, {