Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Include checkpoints by default in SecureTrie.copy #119

Merged
merged 2 commits into from
May 27, 2020

Conversation

ryanio
Copy link
Contributor

@ryanio ryanio commented May 22, 2020

This PR is a breaking change that by default includes checkpoint metadata in copying a SecureTrie.

See this comment for some more context.

In ethereumjs-vm, SecureTrie.copy has been used with the assumption that checkpointing state is not copied, so dependent libraries will have to update accordingly. This PR adds the param includeCheckpoints to SecureTrie.copy (identical to CheckpointTrie.copy) so passing false can maintain original behavior.

Thanks to @msieczko and @s1na for their insights.

Copy link
Member

@holgerd77 holgerd77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ryanio ryanio merged commit 3de44d1 into release/4.0.0 May 27, 2020
@ryanio ryanio mentioned this pull request May 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants