chainbound / bolt

Bolt: permissionless proposer commitments on Ethereum
https://chainbound.github.io/bolt-docs/
MIT License
49 stars 14 forks source link

State diffs are not used for validating new preconfirmation requests #136

Closed thedevbirb closed 2 months ago

thedevbirb commented 2 months ago

The validation of incoming preconfirmation requests is currently flawed because the nonce and balance checks are performed against the current account state (from the latest known head) but without considering prior preconfirmations (i.e., the state diffs). To solve this, we should check against both the account state and the state diffs.

Example: We're at slot $N$ and I make two preconfirmation requests for slot $N+2$. The validation of the second preconfirmation is successful because it is not considering the temporary state difference generated from the first request.

namn-grg commented 2 months ago

Can we close this?