gballet / go-ethereum

Official Go implementation of the Ethereum protocol
https://geth.ethereum.org
GNU Lesser General Public License v3.0
22 stars 13 forks source link

Shower thought: keep storing the contract code outside the tree #422

Open gballet opened 5 months ago

gballet commented 5 months ago

Rationale

In geth, the code is currently stored outside the tree. Reading from the tree will take time, and until this happens, code will be stored twice. Since code can no longer be written to after the first time, it makes sense to just encode code groups as their commitment and add them to the witness from the whole code read from the db.

gballet commented 4 weeks ago

Look at #479 when implementing this.