multi: log warnings if deprecated config options are used

This commit adds warning logs if the user uses deprecated config
options, paving the way for future removal.
This commit is contained in:
yyforyongyu
2024-01-31 14:58:10 +08:00
parent 7d74165296
commit 157c84cc4d
4 changed files with 45 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ import (
//
//nolint:lll
type Chain struct {
Active bool `long:"active" description:"DEPRECATED: If the chain should be active or not. This field is now ignored since only the Bitcoin chain is supported"`
Active bool `long:"active" description:"DEPRECATED: If the chain should be active or not. This field is now ignored since only the Bitcoin chain is supported" hidden:"true"`
ChainDir string `long:"chaindir" description:"The directory to store the chain's data within."`
Node string `long:"node" description:"The blockchain interface to use." choice:"btcd" choice:"bitcoind" choice:"neutrino" choice:"nochainbackend"`