Skip to content
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

util: Rename mapdb copy function #2795

Merged
merged 2 commits into from
Jun 18, 2023
Merged

Conversation

scorbajio
Copy link
Contributor

The current implementation of the copy function of the DB interface does not create a new underlying db but rather reuses the same db of the original object being copied. This PR renames the copy function to shallowCopy in order to reflect this behavior and make it's name more intuitive and less confusing.

@codecov
Copy link

codecov bot commented Jun 18, 2023

Codecov Report

Merging #2795 (b719a00) into master (9b04402) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 89.58% <ø> (ø)
blockchain 92.52% <ø> (ø)
client 87.09% <100.00%> (+0.01%) ⬆️
common 97.26% <ø> (ø)
devp2p 86.58% <ø> (ø)
ethash ?
evm 66.60% <ø> (ø)
rlp ∅ <ø> (∅)
statemanager 86.35% <ø> (ø)
trie 90.12% <100.00%> (+0.04%) ⬆️
tx 95.87% <ø> (ø)
util 82.75% <100.00%> (+0.09%) ⬆️
vm 77.55% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Contributor

@acolytec3 acolytec3 left a comment

Choose a reason for hiding this comment

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

LGTM

@acolytec3 acolytec3 merged commit 4146f58 into master Jun 18, 2023
@holgerd77 holgerd77 deleted the rename-mapdb-copy-function branch June 19, 2023 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants