ethereum / evmc

EVMC – Ethereum Client-VM Connector API
https://evmc.ethereum.org
Apache License 2.0
348 stars 310 forks source link

EVMC versioning is incompatible with the "EIP-centric hard forks" model #453

Open axic opened 5 years ago

axic commented 5 years ago

See https://ethereum-magicians.org/t/eip-centric-forking/3536.

It requires EIPs to be implemented in clients and be switched on independently. They are only later assigned to a hard fork.

I am not sure what is the best course of action for EVMC.

axic commented 5 years ago

cc @chfast @chriseth

chfast commented 5 years ago

Extend the EVM revision type.

struct evmc_revision_ex 
{
    evmc_revision rev;
    uint32_t extensions;
};
axic commented 5 years ago

Do you mean that rev is the base revision on top extensions are enabled and the extension flags are specific to the revision?