-
Notifications
You must be signed in to change notification settings - Fork 146
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
merge master to atomic base branch #744
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional: we can also move the sync, state, txpool packages to "internal" if desired
@@ -68,7 +75,7 @@ type AtomicBackend interface { | |||
} | |||
|
|||
// atomicBackend implements the AtomicBackend interface using | |||
// the AtomicTrie, AtomicTxRepository, and the VM's shared memory. | |||
// the interfaces.AtomicTrie, AtomicTxRepository, and the VM's shared memory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this comment still correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -140,7 +144,7 @@ func newAtomicTrie( | |||
} | |||
// initialize to EmptyRootHash if there is no committed root. | |||
if root == (common.Hash{}) { | |||
root = types.EmptyRootHash | |||
root = EmptyAtomicRootHash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional: we can import this from go-ethereum's upstream type if we don't want to duplicate this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted it since it should be good after libevm transition
_ AtomicTrie = &atomicTrie{} | ||
lastCommittedKey = []byte("atomicTrieLastCommittedBlock") | ||
appliedSharedMemoryCursorKey = []byte("atomicTrieLastAppliedToSharedMemory") | ||
AtomicKeyLength = wrappers.LongLen + common.HashLength |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should we rename this to AtomicTrieKeyLength to be more descriptive?
We cannot move it in this PR as we use them in plugin/evm. We might be able to move them once we isolate the atomic pkg. (golang only allows internal pkgs to be used from their root) |
Merges master (at b6b4dfb) to atomic base branch