ApiAddress string `mapstructure:"api_addr"`
+ VaultMode bool `mapstructure:"vault_mode"`
+
Time time.Time
+
+ // log file name
+ LogName string `mapstructure:"log_name"`
}
// Default configurable base parameters.
DBPath: "data",
KeysPath: "keystore",
HsmUrl: "",
+ LogName: "bytom.log",
}
}
//-----------------------------------------------------------------------------
type WalletConfig struct {
Disable bool `mapstructure:"disable"`
+ Rescan bool `mapstructure:"rescan"`
}
type RPCAuthConfig struct {
func DefaultWalletConfig() *WalletConfig {
return &WalletConfig{
Disable: false,
+ Rescan: false,
}
}