mirror of
https://github.com/logos-blockchain/logos-blockchain-simulations.git
synced 2026-04-18 17:13:07 +00:00
playing with parameters
This commit is contained in:
parent
b6a1e5db68
commit
4c014275de
@ -38,16 +38,26 @@
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"demand = 500"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"params = SimulationParameters(\n",
|
||||
" num_blocks=int(days * 24 * 60 * 60 / 12), # number of blocks in \"days\",\n",
|
||||
" demand_sizes=[0, 50, 1000, 2000], # very low, normal, very high demand\n",
|
||||
" demand_probabilities=[0.02, 0.06, 0.86, 0.06], # they must sum to 1\n",
|
||||
" fee_cap_range=(0.05, 0.1), # in percentage, mean and std deviation\n",
|
||||
" max_tip_pct=0.1,\n",
|
||||
" scale_block_size_limits=(0.05, 0.1),\n",
|
||||
" demand_sizes=[demand], # very low, normal, very high demand\n",
|
||||
" demand_probabilities=[1.], # they must sum to 1\n",
|
||||
" fee_cap_range=(0., 0.00001), # in percentage, mean and std deviation\n",
|
||||
" max_tip_pct=0.1, # this only affects the EIP-1559 simulation\n",
|
||||
" scale_block_size_limits=(0.0, 0.05),\n",
|
||||
" probability_stop_below_gas_limit=0.5,\n",
|
||||
" purge_after=2\n",
|
||||
" purge_after=4,\n",
|
||||
" variable_gas_limits=False\n",
|
||||
")"
|
||||
]
|
||||
},
|
||||
@ -66,8 +76,8 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"df_stats_merged[[\"price_EIP\", \"price_StableFee\"]].plot(\n",
|
||||
" title=\"EIP-1559 vs StableFee price\",\n",
|
||||
"df_stats_merged[[\"price_StableFee\"]].plot(\n",
|
||||
" title=f\"StableFee price - {demand} txs - variable gas limits\",\n",
|
||||
")"
|
||||
]
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user