filecoin-project/specs

BaseFee Compute

zgfzgf opened this issue · 0 comments

Basefee should express the change of gasLimit,
The calculation should be as follows:
averageGasLimit=gasLimitUsed / noOfBlocks
parent_averageGasLimit=parent_gasLimitUsed / parent_noOfBlocks
delta=averageGasLimit/parent_averageGasLimit
nextBaseFee=baseFee*delta
https://github.com/filecoin-project/lotus/blob/3196b2cfd577907d871cd5de662206407d906577/chain/store/basefee.go#L14-L46