Skip to content

Nethermind v2.0 - #1232

Open
0xfornax wants to merge 5 commits into
masterfrom
nethermind-v2.0
Open

0xfornax wants to merge 5 commits into
masterfrom
nethermind-v2.0

Conversation

@0xfornax

Copy link
Copy Markdown
Member

Nethermind 2.0 uses FlatDB for a new database and leaves an existing Patricia database unchanged. FlatDB does not support manual state pruning. The startup script detects the on-disk layout, applies Patricia pruning only for that database, and selects FlatInTrie for a fresh sync on machines with up to 16 GiB of RAM. That choice is saved so later restarts do not change the layout. rocketpool service get-db-details reports the Nethermind layout, and for Geth it reports the Pebble database version.

@github-actions

Copy link
Copy Markdown

Coverage Report

@github-actions

Copy link
Copy Markdown

Coverage Report

@github-actions

Copy link
Copy Markdown

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/rocket-pool/smartnode/rocketpool-cli/service 0.23% (+0.23%) 👍
github.com/rocket-pool/smartnode/shared/services/config 7.82% (+1.64%) 👍
github.com/rocket-pool/smartnode/shared/services/rocketpool 0.45% (+0.45%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/rocket-pool/smartnode/rocketpool-cli/service/commands.go 0.00% (ø) 3152 (+402) 0 3152 (+402)
github.com/rocket-pool/smartnode/rocketpool-cli/service/db-details.go 6.90% (+6.90%) 898 (+898) 62 (+62) 836 (+836) 👍
github.com/rocket-pool/smartnode/rocketpool-cli/service/service.go 0.07% (+0.07%) 32705 (+4050) 22 (+22) 32683 (+4028) 👍
github.com/rocket-pool/smartnode/shared/services/config/nethermind-config.go 12.50% (+12.50%) 640 (+640) 80 (+80) 560 (+560) 🎉
github.com/rocket-pool/smartnode/shared/services/rocketpool/client.go 0.47% (+0.47%) 24009 (+4203) 112 (+112) 23897 (+4091) 👍
github.com/rocket-pool/smartnode/shared/services/rocketpool/db-details.go 9.57% (+9.57%) 888 (+888) 85 (+85) 803 (+803) 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/rocket-pool/smartnode/rocketpool-cli/service/db-details_test.go
  • github.com/rocket-pool/smartnode/shared/services/rocketpool/db-details_test.go

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.

1 participant