X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=config%2Fconfig.go;h=a9023371b636103b359bb4c8f8c9c0ca91b25674;hb=a96d25a3eeb6982e29543242f047fbebcc67b0c2;hp=63e093185c5c2ea71ce8f4f3fa2fc23665493029;hpb=16d2f3a2260f05ab530e6c4e607eb7faa6ee9e99;p=bytom%2Fbytom.git diff --git a/config/config.go b/config/config.go index 63e09318..a9023371 100644 --- a/config/config.go +++ b/config/config.go @@ -81,7 +81,12 @@ type BaseConfig struct { 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. @@ -97,6 +102,7 @@ func DefaultBaseConfig() BaseConfig { DBPath: "data", KeysPath: "keystore", HsmUrl: "", + LogName: "bytom.log", } } @@ -143,6 +149,7 @@ func (p *P2PConfig) AddrBookFile() string { //----------------------------------------------------------------------------- type WalletConfig struct { Disable bool `mapstructure:"disable"` + Rescan bool `mapstructure:"rescan"` } type RPCAuthConfig struct { @@ -171,6 +178,7 @@ func DefaultWebConfig() *WebConfig { func DefaultWalletConfig() *WalletConfig { return &WalletConfig{ Disable: false, + Rescan: false, } }