diff --git a/config/dbconfig.go b/config/dbconfig.go index ec98aec4..2acf497e 100644 --- a/config/dbconfig.go +++ b/config/dbconfig.go @@ -2,8 +2,9 @@ package config import ( "fmt" - "github.com/lightningnetwork/lnd/kvdb" "time" + + "github.com/lightningnetwork/lnd/kvdb" ) const ( @@ -33,11 +34,11 @@ type DBConfig struct { // AutoCompactMinAge specifies the minimum time that must have passed // since a bolt database file was last compacted for the compaction to // be considered again. - AutoCompactMinAge time.Duration `mapstructure:"autocompact"` + AutoCompactMinAge time.Duration `mapstructure:"autocompactminage"` // DBTimeout specifies the timeout value to use when opening the wallet // database. - DBTimeout time.Duration `mapstructure:"autocompact"` + DBTimeout time.Duration `mapstructure:"dbtimeout"` } func DefaultDBConfig() *DBConfig { diff --git a/sample-vigilante-docker.yml b/sample-vigilante-docker.yml index a8afa829..b73c6a26 100644 --- a/sample-vigilante-docker.yml +++ b/sample-vigilante-docker.yml @@ -56,6 +56,13 @@ submitter: resubmit-fee-multiplier: 1 polling-interval-seconds: 60 resend-interval-seconds: 1800 + dbconfig: + dbpath: /vigilante/ + dbfilename: submitter.db + nofreelistsync: true + autocompact: false + autocompactminage: 168h + dbtimeout: 60s reporter: netparams: simnet btc_cache_size: 1000 @@ -69,4 +76,11 @@ monitor: max-live-btc-heights: 200 enable-liveness-checker: true enable-slasher: true - btcnetparams: simnet \ No newline at end of file + btcnetparams: simnet + dbconfig: + dbpath: /vigilante/ + dbfilename: monitor.db + nofreelistsync: true + autocompact: false + autocompactminage: 168h + dbtimeout: 60s \ No newline at end of file diff --git a/sample-vigilante.yml b/sample-vigilante.yml index 076733e8..78a4552c 100644 --- a/sample-vigilante.yml +++ b/sample-vigilante.yml @@ -55,6 +55,13 @@ submitter: resubmit-fee-multiplier: 1 polling-interval-seconds: 60 resend-interval-seconds: 1800 + dbconfig: + dbpath: $TESTNET_PATH/vigilante/ + dbfilename: submitter.db + nofreelistsync: true + autocompact: false + autocompactminage: 168h + dbtimeout: 60s reporter: netparams: simnet btc_cache_size: 1000 @@ -69,6 +76,13 @@ monitor: enable-liveness-checker: true enable-slasher: true btcnetparams: simnet + dbconfig: + dbpath: $TESTNET_PATH/monitor/ + dbfilename: submitter.db + nofreelistsync: true + autocompact: false + autocompactminage: 168h + dbtimeout: 60s btcstaking-tracker: check-delegations-interval: 1m delegations-batch-size: 100