mirror of
https://github.com/logos-blockchain/logos-blockchain-simulations.git
synced 2026-01-04 22:23:08 +00:00
variable gas limit as parameter
This commit is contained in:
parent
cd5c6772ab
commit
7a99edfbb6
@ -14,6 +14,7 @@ class SimulationParameters:
|
||||
scale_block_size_limits: Tuple[float] = (0.0, 0.2),
|
||||
probability_stop_below_gas_limit: float = 0.5,
|
||||
purge_after: int = 4,
|
||||
variable_gas_limits: bool = True
|
||||
):
|
||||
assert len(demand_sizes) == len(demand_probabilities), "demand_sizes and demand_probabilities must have the same length"
|
||||
assert abs(sum(demand_probabilities) - 1.0) < 1.e-12, "demand_probabilities must sum to 1.0"
|
||||
@ -35,4 +36,5 @@ class SimulationParameters:
|
||||
self.max_tip_pct = max_tip_pct
|
||||
self.scale_block_size_limits = scale_block_size_limits
|
||||
self.probability_stop_below_gas_limit = probability_stop_below_gas_limit
|
||||
self.purge_after = purge_after
|
||||
self.purge_after = purge_after
|
||||
self.variable_gas_limits = variable_gas_limits
|
||||
Loading…
x
Reference in New Issue
Block a user