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

Bonsai based reference test worldstate #5686

Merged

Commits on Sep 14, 2023

  1. create a bonsai based reference test worldstate

    Signed-off-by: garyschulte <garyschulte@gmail.com>
    garyschulte committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    f7d16f6 View commit details
    Browse the repository at this point in the history
  2. fix some tests and initialization

    Signed-off-by: garyschulte <garyschulte@gmail.com>
    garyschulte committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    4b6c7a6 View commit details
    Browse the repository at this point in the history
  3. interim commit, using Function as interface rather than PreImageStorage

    bonsai worldstate tests fixes and hacks
      -> getOrCreate in BonsaiWorldStateUpdateAccumulator - do not throw if we discover an empty account in a non-null BonsaiValue<Account>
      -> add curentStateRoot to t8n
      -> preImageHasher function in BonsaiWorldState / Accumulator
        .. hacky setting/copying of preImageHasher on construction/copying just in Layered.  if we keep this route, we need to do it for snapshots also
      -> storageEntriesFrom and streamAccounts implemented in BonsaiWorldStateKeyValueStorage
    
    Signed-off-by: garyschulte <garyschulte@gmail.com>
    garyschulte committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    4afe52f View commit details
    Browse the repository at this point in the history
  4. move hashing and preImage functions into a PreImageProxy class

    Signed-off-by: garyschulte <garyschulte@gmail.com>
    garyschulte committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    d9efe76 View commit details
    Browse the repository at this point in the history
  5. a few fixes for preImageProxy usage, account and storage streaming

    Signed-off-by: garyschulte <garyschulte@gmail.com>
    garyschulte committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    e689332 View commit details
    Browse the repository at this point in the history
  6. reference tests fix and a little cleanup

    Signed-off-by: garyschulte <garyschulte@gmail.com>
    garyschulte committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    6659509 View commit details
    Browse the repository at this point in the history
  7. fix tests collisions

    Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
    matkt authored and garyschulte committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    ee7c22c View commit details
    Browse the repository at this point in the history
  8. pass limit into streamFlatAccounts, make ref test preimageproxy synch…

    …ronized to avoid concurrency issues
    
    Signed-off-by: garyschulte <garyschulte@gmail.com>
    garyschulte committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    30d21d2 View commit details
    Browse the repository at this point in the history
  9. spotless vs intellij imports

    Signed-off-by: garyschulte <garyschulte@gmail.com>
    garyschulte committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    9e6f18b View commit details
    Browse the repository at this point in the history
  10. remove commented out Forest worldstate

    Signed-off-by: garyschulte <garyschulte@gmail.com>
    garyschulte committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    5c18c90 View commit details
    Browse the repository at this point in the history
  11. implement feedback from Karim, isolate BonsaiPreImageProxy, add endKe…

    …y version of streamFromKey
    
    Signed-off-by: garyschulte <garyschulte@gmail.com>
    garyschulte committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    3ae8398 View commit details
    Browse the repository at this point in the history
  12. filter inMemory key value storage rather than takeWhile to avoid sort

    Signed-off-by: garyschulte <garyschulte@gmail.com>
    garyschulte committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    27d1e74 View commit details
    Browse the repository at this point in the history
  13. rebase, javadoc and a bit of cleanup

    Signed-off-by: garyschulte <garyschulte@gmail.com>
    garyschulte committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    a407318 View commit details
    Browse the repository at this point in the history