Update emulator server with configurable persistent storage
@@ -22,6 +22,7 @@ type Config struct {
RootKey string `flag:"root-key" info:"root account key"`
Init bool `default:"false" flag:"init" info:"whether to initialize a new account profile"`
GRPCDebug bool `default:"false" flag:"grpc-debug" info:"enable gRPC server reflection for debugging with grpc_cli"`
+ Persistent bool `default:"false" flag:"persistent" info:"enable persistent storage"`
DBPath string `default:"./flowdb" flag:"db-path" info:"where Flow chain data will be stored"`
}
@@ -60,6 +61,7 @@ var Cmd = &cobra.Command{
BlockInterval: conf.BlockInterval,
RootAccountKey: &rootAcct.PrivateKey,
GRPCDebug: conf.GRPCDebug,
+ Persistent: conf.Persistent,
DBPath: conf.DBPath,
}
