-
Notifications
You must be signed in to change notification settings - Fork 679
allow configuration of baseFeePerGas
#1573
Comments
Thanks for opening this! Interesting question. What do you think of Would love to know more about your use case... you mention that Ganache's behavior disrupts your calculations; could you describe what you're doing in a bit more detail? Might be helpful for us to consider the pros and cons here. Thanks! |
hi @gnidan, let me onboard you in our case scenario. so let's say we're in block 990, and since the process takes a little bit of time, we want to know if in block 1000 a transaction will be profitable. so we fork 990, advance 10 blocks, and run our transaction. notice: the results of the transaction depend on the baseFee (because the tx is payed for its the problem here, as pointed above, is that the it's a tricky one, because, we will never know the baseFee of the future blocks, but i believe it would make some sense for the fork, not to vary, since in other case, it is always going to go very down quickly, resulting in unexpected behaviour for the user that may not be actually aware of this variation |
Many thanks for the explanation @wei3erHase, we've added it to our backlog and we'll address it after the 7.0 stable release. |
baseFeePerGas
each time
evm_mine
is called on a fork, since only 1 tx has been made in that block, it makes the future block to have a minorbaseFee
than the one before. When running calculations that depend on thatbaseFee
, advancing blocks seems to disrupt the calculation, and be run with a very lowbaseFee
that cannot be setcontext:
baseFee
of future blocks cannot be predicted beforehand, so this behaviour is not unexpectedproblem: making
baseFee
variable (and unpredictable) between blocks can disrupt all tx gas settings and calculations, creating an unpredictable environment for developers that rely on those settingsproposed solution: keep
baseFee
constant (despite having very light blocks), or either have a method to set abaseFee
on the fork such asevm_setBaseFee
, allowing the dev to have access to a predictable gas setting on a certain blockThe text was updated successfully, but these errors were encountered: