Skip to content

Commit b7b53b7

Browse files
committed
refactor(explorer): refactor protocol parameters naming in epoch setting component
* Remove `Protocol Parameters` as it's deprecated * Rename `Next Protocol Parameters` to `Registration Protocol Parameters` and use `signer_registration_protocol` as source with a fallback to `next_protocol` if missing (for retrocompatibility with old aggregators). Refs: #1966
1 parent 9d5a9bd commit b7b53b7

File tree

1 file changed

+2
-6
lines changed
  • mithril-explorer/src/components/EpochSettings

1 file changed

+2
-6
lines changed

mithril-explorer/src/components/EpochSettings/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,8 @@ export default function EpochSettings() {
7373
<div className="mb-2 ps-3">{epochSettings.epoch}</div>
7474
</Col>
7575
<Col xs={12} md="auto">
76-
<h5>Protocol Parameters</h5>
77-
<ProtocolParameters className="mb-2" protocolParameters={epochSettings.protocol}/>
78-
</Col>
79-
<Col xs={12} md="auto">
80-
<h5>Next Protocol Parameters</h5>
81-
<ProtocolParameters protocolParameters={epochSettings.next_protocol}/>
76+
<h5>Registration Protocol Parameters</h5>
77+
<ProtocolParameters protocolParameters={epochSettings.signer_registration_protocol ?? epochSettings.next_protocol}/>
8278
</Col>
8379
</Row>
8480
</Container>

0 commit comments

Comments
 (0)