OSDN Git Service

Merge pull request #904 from Bytom/dev_dir_lock
[bytom/bytom.git] / config / config.go
index 63e0931..a902337 100644 (file)
@@ -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,
        }
 }