ipsilon / eof

Validation code for the EOF specification
Apache License 2.0
43 stars 19 forks source link

Reject `BLOCKHASH` #114

Open chfast opened 5 months ago

chfast commented 5 months ago

The EIP-2935: Serve historical block hashes from state possibly modified the BLOCKHASH instruction and provides enhanced alternative in form of a system contract.

Considering there is going to be better way for accessing block hashes the BLOCKHASH instruction should be rejected in EOF.

Pros

Cons

jochem-brouwer commented 5 months ago

I do not understand the motivation here. The only way I see how BLOCKHASH has changed is that there now is a bigger window to lookup hashes. If we remove it then you have to do this system call which is definitely more expensive than BLOCKHASH.

chfast commented 5 months ago

The goal is to remove obsolete/deprecated features of EVM in EOF so the EOF is simpler.

chfast commented 5 months ago

If the decision is "no change" we should still write some EIP "things considered" section.