Skip to content

Commit 10a45f3

Browse files
alarso16JonathanOppenheimer
authored andcommitted
feat: Enable PathDB config (#1244)
1 parent f9d536e commit 10a45f3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

plugin/evm/config/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ Failing to set these options will result in errors on VM initialization. Additio
251251
| `database-config-file` | string | Path to database configuration file | - |
252252
| `use-standalone-database` | bool | Use standalone database instead of shared one | - |
253253
| `inspect-database` | bool | Inspect database on startup | `false` |
254-
| `state-scheme` | string | EXPERIMENTAL: specifies the database scheme to store state data; can be one of `hash` or `firewood` | `hash` |
254+
| `state-scheme` | string | EXPERIMENTAL: specifies the database scheme to store state data; can be one of `hash`, `firewood`, or `path` | `hash` |
255255

256256
## Transaction Indexing
257257

plugin/evm/vm.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,7 @@ func (vm *VM) Initialize(
409409
}
410410
}
411411
if vm.ethConfig.StateScheme == rawdb.PathScheme {
412-
log.Error("Path state scheme is not supported. Please use HashDB or Firewood state schemes instead")
413-
return errors.New("Path state scheme is not supported")
412+
log.Warn("Path state scheme is not supported. Please use HashDB or Firewood state schemes instead")
414413
}
415414

416415
// Create directory for offline pruning

plugin/evm/vm_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@ func issueAndAccept(t *testing.T, vm *VM) snowman.Block {
367367
}
368368

369369
func TestBuildEthTxBlock(t *testing.T) {
370-
for _, scheme := range schemes {
370+
// This test is done for all schemes to ensure the VM can be started with any scheme.
371+
for _, scheme := range []string{rawdb.HashScheme, rawdb.PathScheme, customrawdb.FirewoodScheme} {
371372
t.Run(scheme, func(t *testing.T) {
372373
testBuildEthTxBlock(t, scheme)
373374
})

0 commit comments

Comments
 (0)