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

Thunder ideas for testing the EVM #487

Open
winsvega opened this issue Aug 15, 2018 · 0 comments
Open

Thunder ideas for testing the EVM #487

winsvega opened this issue Aug 15, 2018 · 0 comments

Comments

@winsvega
Copy link
Collaborator

winsvega commented Aug 15, 2018

Rough outline of factors this contract should test for:
built in functions

  • big state writes
  • many state writes
  • big state reads
  • many state reads
  • state reads from very old data
  • many EVM operations (TODO outline diff types of EVM operations)
  • failing

Note 1: that each of these functions should be dependent on some input data such that we can chain it with read operations to simulate waiting on disk reads.

Note 2: read operations are log(N) where N is num entries in leveldb kv store so we would expect different results based on size of leveldb.

Note 3: old data takes longer to access than newly written data from statedb, so the smart contract must be able to read state from itself that it wrote a long time ago.

I think one design is to have functions emulating each of the above functionality and have the public interface be something like:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant