Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Remove state tree manipulations that cause race condition #234

@aakilfernandes

Description

@aakilfernandes

https://github.com/ethereumjs/testrpc/blob/master/lib/blockchain_double.js#L405-L409
https://github.com/ethereumjs/testrpc/blob/master/lib/blockchain_double.js#L448-L452
https://github.com/ethereumjs/testrpc/blob/master/lib/blockchain_double.js#L486-L490

By temporarily mapulating the stateTrie root, the blockchain will return false values until it is reverted (when the callback excutes)

I'm working on a fix to the Trie class to allow passing in a custom root, which should solve this

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions