Skip to content

Commit 8415897

Browse files
committed
root: add signet support
1 parent bae1bff commit 8415897

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cmd/chantools/root.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const (
4444
var (
4545
Testnet bool
4646
Regtest bool
47+
Signet bool
4748

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

69+
case Signet:
70+
chainParams = &chaincfg.SigNetParams
71+
6872
default:
6973
chainParams = &chaincfg.MainNetParams
7074
}
@@ -86,6 +90,10 @@ func main() {
8690
&Regtest, "regtest", "r", false, "Indicates if regtest "+
8791
"parameters should be used",
8892
)
93+
rootCmd.PersistentFlags().BoolVarP(
94+
&Signet, "signet", "s", false, "Indicates if the public "+
95+
"signet parameters should be used",
96+
)
8997

9098
rootCmd.AddCommand(
9199
newChanBackupCommand(),

0 commit comments

Comments
 (0)