Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/evm/cmd/rollback.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func NewRollbackCmd() *cobra.Command {
}

// evolve db
rawEvolveDB, err := store.NewDefaultKVStore(nodeConfig.RootDir, nodeConfig.DBPath, "evm")
rawEvolveDB, err := store.NewDefaultKVStore(nodeConfig.RootDir, nodeConfig.DBPath, evmDbName)
if err != nil {
return err
}
Expand Down
4 changes: 3 additions & 1 deletion apps/evm/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ import (
"github.com/evstack/ev-node/sequencers/single"
)

const evmDbName = "evm-single"

var RunCmd = &cobra.Command{
Use: "start",
Aliases: []string{"node", "run"},
Expand Down Expand Up @@ -60,7 +62,7 @@ var RunCmd = &cobra.Command{
return err
}

datastore, err := store.NewDefaultKVStore(nodeConfig.RootDir, nodeConfig.DBPath, "evm")
datastore, err := store.NewDefaultKVStore(nodeConfig.RootDir, nodeConfig.DBPath, evmDbName)
if err != nil {
return err
}
Expand Down
3 changes: 2 additions & 1 deletion apps/grpc/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
)

const (
grpcDbName = "grpc-single"
// FlagGrpcExecutorURL is the flag for the gRPC executor endpoint
FlagGrpcExecutorURL = "grpc-executor-url"
)
Expand Down Expand Up @@ -63,7 +64,7 @@ The execution client must implement the Evolve execution gRPC interface.`,
}

// Create datastore
datastore, err := store.NewDefaultKVStore(nodeConfig.RootDir, nodeConfig.DBPath, "evgrpc")
datastore, err := store.NewDefaultKVStore(nodeConfig.RootDir, nodeConfig.DBPath, grpcDbName)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion apps/testapp/cmd/rollback.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func NewRollbackCmd() *cobra.Command {
}

// evolve db
rawEvolveDB, err := store.NewDefaultKVStore(nodeConfig.RootDir, nodeConfig.DBPath, "testapp")
rawEvolveDB, err := store.NewDefaultKVStore(nodeConfig.RootDir, nodeConfig.DBPath, testDbName)
if err != nil {
return err
}
Expand Down
4 changes: 3 additions & 1 deletion apps/testapp/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import (
"github.com/evstack/ev-node/sequencers/single"
)

const testDbName = "testapp"

var RunCmd = &cobra.Command{
Use: "start",
Aliases: []string{"node", "run"},
Expand Down Expand Up @@ -61,7 +63,7 @@ var RunCmd = &cobra.Command{
return err
}

datastore, err := store.NewDefaultKVStore(nodeConfig.RootDir, nodeConfig.DBPath, "testapp")
datastore, err := store.NewDefaultKVStore(nodeConfig.RootDir, nodeConfig.DBPath, testDbName)
if err != nil {
return err
}
Expand Down
Loading