Skip to content

Commit

Permalink
Remove code repetition in Conway era protocol_version CDDL
Browse files Browse the repository at this point in the history
  • Loading branch information
iccicci committed Mar 7, 2024
1 parent bc2fdce commit 43b6824
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eras/conway/impl/cddl-files/conway.cddl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ header_body =
, block_body_size : uint
, block_body_hash : $hash32 ; merkle triple root
, operational_cert
, [ protocol_version ]
, protocol_version
]

operational_cert =
Expand All @@ -48,7 +48,7 @@ next_major_protocol_version = 10

major_protocol_version = 1..next_major_protocol_version

protocol_version = (major_protocol_version, uint)
protocol_version = [(major_protocol_version, uint)]

transaction_body =
{ 0 : set<transaction_input> ; inputs
Expand Down Expand Up @@ -105,7 +105,7 @@ policy_hash = scripthash

parameter_change_action = (0, gov_action_id / null, protocol_param_update, policy_hash / null)

hard_fork_initiation_action = (1, gov_action_id / null, [protocol_version])
hard_fork_initiation_action = (1, gov_action_id / null, protocol_version)

treasury_withdrawals_action = (2, { reward_account => coin }, policy_hash / null)

Expand Down

0 comments on commit 43b6824

Please sign in to comment.