Skip to content

Commit eec3f17

Browse files
authored
added custody group count in node/identity endpoint (#7046)
* added custody group count in node/identity endpoint * fix copyright year
1 parent 5063492 commit eec3f17

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

beacon_chain/rpc/rest_node_api.nim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021-2024 Status Research & Development GmbH
1+
# Copyright (c) 2021-2025 Status Research & Development GmbH
22
# Licensed and distributed under either of
33
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
44
# * 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) =
164164
metadata: (
165165
seq_number: node.network.metadata.seq_number,
166166
syncnets: to0xHex(node.network.metadata.syncnets.bytes),
167-
attnets: to0xHex(node.network.metadata.attnets.bytes)
167+
attnets: to0xHex(node.network.metadata.attnets.bytes),
168+
custody_group_count: node.network.metadata.custody_group_count
168169
)
169170
)
170171
)

beacon_chain/spec/eth2_apis/rest_types.nim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ type
274274
seq_number*: string
275275
syncnets*: string
276276
attnets*: string
277+
custody_group_count*: string
277278

278279
RestNetworkIdentity* = object
279280
peer_id*: string

ncli/resttest-rules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4265,7 +4265,7 @@
42654265
"response": {
42664266
"status": {"operator": "equals", "value": "200"},
42674267
"headers": [{"key": "Content-Type", "value": "application/json", "operator": "equals"}],
4268-
"body": [{"operator": "jstructcmps", "start": ["data"], "value": {"peer_id": "", "enr": "", "p2p_addresses": [""], "discovery_addresses": [""], "metadata": {"seq_number": "", "attnets": "", "syncnets": ""}}}]
4268+
"body": [{"operator": "jstructcmps", "start": ["data"], "value": {"peer_id": "", "enr": "", "p2p_addresses": [""], "discovery_addresses": [""], "metadata": {"seq_number": "", "attnets": "", "syncnets": "", "custody_group_count": ""}}}]
42694269
}
42704270
},
42714271
{

0 commit comments

Comments
 (0)