Page MenuHomeThat World

Testing with genesis block
ClosedPublic

Authored by sorpaas on Jan 4 2018, 12:55 PM.

Details

Summary

This adds trie crate testing using genesis block. It does the following:

  • Create the state trie for genesis block, and check it matches.
  • Do a fuzzy testing, randomly remove half of the items in the trie. Check that the

database is exactly the same as building the other half from scratch. (This checks GC
works for the first time.)

  • Again, then remove the other half of the item in the trie. Check that the result

database is empty. (This checks GC works for the second time.)

Diff Detail

Repository
rELIB ethereum-rs
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

sorpaas created this revision.Jan 4 2018, 12:55 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jan 4 2018, 12:58 PM
This revision was automatically updated to reflect the committed changes.