Conversation
34fe331 to
56100a8
Compare
4a51776 to
6226558
Compare
| denominator, elasticity uint64 | ||
| minBaseFeeLog2 uint8 | ||
| ) | ||
| if len(extraData) == 10 { |
There was a problem hiding this comment.
not sure if there was a way to do rollup.IsJovian
There was a problem hiding this comment.
oof. This code makes it clearer why DecodeHoloceneExtraData behaves the way it does with return values of 0, 0 when the extra data doesn't fit the Holocene format. In this context, maybe we've implemented DecodeMinBaseFeeExtraData incorrectly. I think we should update it to check if len(extra) == 9 and call the earlier DecodeHoloceneExtraData function to get the denominator and elasticity, and add zero as the third return value for minimum base fee. We'd also want to update the doc comment to indicate that it makes a best effort to decode the extra data for every block in the chain's history, including before the minimum base fee was implemented.
With those changes, we can remove the length check here and just call DecodeMinBaseFeeExtraData.
| // So we translate it here. | ||
| extraData := invalidatedBlock.ExecutionPayload.ExtraData | ||
| denominator, elasticity := eip1559.DecodeHoloceneExtraData(extraData) | ||
| denominator, elasticity, minBaseFeeLog2 := eip1559.DecodeMinBaseFeeExtraData(extraData) |
|
Let's open this RP upstream for visibility. |
6ce75e9 to
279ca8e
Compare
ed3dc9b to
7f9a1a7
Compare
9ea7697 to
12e4a5f
Compare
Co-authored-by: Matt Solomon <matt@mattsolomon.dev>
…x right-pad of uint8 in abi-encode
* use u64 * fix system/fees/minbasefee_test
12e4a5f to
0a0052a
Compare
WIP
This PR lets the rollup configure the minimum base fee log2
TODO: