main: add regtest port for btcwallet

Since btcwallet now supports regtest, we add the default port
`18332`. Now `--wallet` command works on regtest.
This commit is contained in:
Abdullahi Yunus 2026-02-24 10:38:41 +01:00
parent c47cb8aae0
commit 2c19db8a4d
No known key found for this signature in database
GPG key ID: 57B20938A9166F08

View file

@ -140,9 +140,7 @@ func normalizeAddress(addr string, chain *chaincfg.Params, useWallet bool) (stri
}
case &chaincfg.RegressionNetParams:
if useWallet {
// TODO: add port once regtest is supported in btcwallet
paramErr := fmt.Errorf("cannot use -wallet with -regtest, btcwallet not yet compatible with regtest")
return "", paramErr
defaultPort = "18332"
} else {
defaultPort = "18334"
}