prysm-pulse/shared/params/io_config.go

21 lines
541 B
Go
Raw Normal View History

2020-06-25 16:12:59 +00:00
package params
import "os"
// IoConfig defines the shared io parameters.
type IoConfig struct {
ReadWritePermissions os.FileMode
ReadWriteExecutePermissions os.FileMode
2020-06-25 16:12:59 +00:00
}
var defaultIoConfig = &IoConfig{
ReadWritePermissions: 0600, //-rw------- Read and Write permissions for user
ReadWriteExecutePermissions: 0700, //-rwx------ Read Write and Execute (traverse) permissions for user
2020-06-25 16:12:59 +00:00
}
// BeaconIoConfig returns the current io config for
// the beacon chain.
func BeaconIoConfig() *IoConfig {
return defaultIoConfig
}