Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Aug 26, 2017

What was wrong?

Implement read-only wrapper for vm.db raising an error if write operations are attempted
https://github.com/pipermerriam/py-evm/issues/80

How was it fixed?

Made the db a property of the class

Cute Animal Picture

63bb616a33fc209cd3a48795c981f46d--mini-husky-alaskan-klee-kai

put a cute animal picture here.

@ghost
Copy link
Author

ghost commented Aug 26, 2017

@gsalgado throwing an early PR out there to see if I'm understanding the issue correctly.

I would also love to write a unit test for this but don't understand what object to pass to the VM class to instantiate it. Thanks.

@gsalgado
Copy link
Owner

Sorry, @egong but ethereum#80 is about having a class that wraps a BaseDB object and only allows read-only methods (e.g. .get(), .exists()) to be called on it.

@ghost ghost closed this Aug 29, 2017
@ghost ghost mentioned this pull request Aug 29, 2017
gsalgado pushed a commit that referenced this pull request May 25, 2018
# This is the 1st commit message:

fixes ethereum#760 ethereum#762 ethereum#737

# The commit message #2 will be skipped:

# use eth-utils big endian integer utils

# The commit message #3 will be skipped:

# Fix IndexError when an empty bucket is encountered while looking up nodes

# The commit message #4 will be skipped:

# dirty
This pull request was closed.
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.

2 participants