From a3b62543cd3942dd4c5cbcb4e2f20b6a0a56fbf7 Mon Sep 17 00:00:00 2001 From: wjrjerome Date: Tue, 30 Jul 2024 13:29:21 +1000 Subject: [PATCH] fix: config should allow btc signet --- internal/config/btc.go | 2 +- internal/utils/utils.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/config/btc.go b/internal/config/btc.go index c380f9d..e29af71 100644 --- a/internal/config/btc.go +++ b/internal/config/btc.go @@ -14,7 +14,7 @@ type BtcConfig struct { When true, connections use HTTP. When false, HTTPS is used for secure communication. */ DisableTLS bool `mapstructure:"disable-tls"` - // NetParams defines the network parameters (e.g., mainnet, testnet). + // NetParams defines the network parameters (e.g., mainnet, testnet & signet). NetParams string `mapstructure:"net-params"` // RpcUser is the username for RPC server authentication. RpcUser string `mapstructure:"rpc-user"` diff --git a/internal/utils/utils.go b/internal/utils/utils.go index a5aba7e..de68560 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -43,6 +43,7 @@ func GetValidNetParams() map[string]bool { BtcTestnet.String(): true, BtcSimnet.String(): true, BtcRegtest.String(): true, + BtcSignet.String(): true, } return params