Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Force telos state #59

Open
wants to merge 25 commits into
base: telos-main
Choose a base branch
from
Open

[WIP] Force telos state #59

wants to merge 25 commits into from

Conversation

guilledk
Copy link

@guilledk guilledk commented Sep 30, 2024

for each telos account row:
    1. telos row differs from revm_db.basic query
        a. revm row is some:
            - balance diff [DONE]
            - nonce diff [DONE]
            - code size/existence diff (if code len same content is not checked) [DONE]

        b. revm_db.basic returns none but telos row present
            - corresponding revm state diff found [DONE]
            - no revm state diff found [DONE]

    2. revm_db.basic finds the addr but row is empty [WIP: Cant seem to get revm_db.basic to return None]

for each telos account state row:
    1. telos row differs from revm_db.storage query
        - present but differs [WIP: Cant seem to edit storage, reth complains: "account is not loaded"]
        - key not present

for each revm state diff:
    1. if revm account info & prev info is present
        - find matching telos state diff
    2. if revm account info is empty
        - find matching telos state diff
    3. check all account storage keys and find them on telos state diff

@guilledk guilledk changed the base branch from telos-main to store_gas_revision September 30, 2024 20:29
@guilledk guilledk changed the title Force telos state [WIP] Force telos state Sep 30, 2024
@guilledk guilledk changed the base branch from store_gas_revision to telos-main October 15, 2024 19:56
@guilledk guilledk force-pushed the state_bypass branch 3 times, most recently from a567ad3 to 4a167d5 Compare October 17, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants