Skip to content

Commit

Permalink
fix: hardcode ada_per_utxo_byte transformation from words to bytes (#423
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ricomiles authored Jan 6, 2025
1 parent 8b558e2 commit 768a47d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ledger/pparams/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ fn bootstrap_conway_pparams(
protocol_version: previous.protocol_version,
min_pool_cost: previous.min_pool_cost,
desired_number_of_stake_pools: previous.desired_number_of_stake_pools,
ada_per_utxo_byte: previous.ada_per_utxo_byte,
// In the hardfork, the value got translated from words to bytes
// Since the transformation from words to bytes is hardcoded, the transformation here is also hardcoded
ada_per_utxo_byte: previous.ada_per_utxo_byte / 8,
execution_costs: previous.execution_costs,
max_tx_ex_units: previous.max_tx_ex_units,
max_block_ex_units: previous.max_block_ex_units,
Expand Down

0 comments on commit 768a47d

Please sign in to comment.