ethereum-optimism / op-geth

GNU Lesser General Public License v3.0
254 stars 652 forks source link

core/vm, params: ensure order of forks, prevent overflow (#29023) #293

Closed trianglesphere closed 2 months ago

trianglesphere commented 2 months ago

Description

This PR fixes an overflow which can could happen if inconsistent blockchain rules were configured. Additionally, it tries to prevent such inconsistencies from occurring by making sure that merge cannot be enabled unless previous fork(s) are also enabled.

Additional context

Cherry-picked from https://github.com/ethereum/go-ethereum/pull/29023