Skip to content

Commit

Permalink
root: add signet support
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed Sep 18, 2023
1 parent bae1bff commit 8415897
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/chantools/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const (
var (
Testnet bool
Regtest bool
Signet bool

logWriter = build.NewRotatingLogWriter()
log = build.NewSubLogger("CHAN", genSubLogger(logWriter))
Expand All @@ -65,6 +66,9 @@ Complete documentation is available at https://github.com/lightninglabs/chantool
case Regtest:
chainParams = &chaincfg.RegressionNetParams

case Signet:
chainParams = &chaincfg.SigNetParams

default:
chainParams = &chaincfg.MainNetParams
}
Expand All @@ -86,6 +90,10 @@ func main() {
&Regtest, "regtest", "r", false, "Indicates if regtest "+
"parameters should be used",
)
rootCmd.PersistentFlags().BoolVarP(
&Signet, "signet", "s", false, "Indicates if the public "+
"signet parameters should be used",
)

rootCmd.AddCommand(
newChanBackupCommand(),
Expand Down

0 comments on commit 8415897

Please sign in to comment.