Skip to content

Commit 60aebe9

Browse files
committed
keystore: use regtest related settings
In this commit, we add checks to set the right settings when the user is on regtest.
1 parent 3a8ce8e commit 60aebe9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/legacy/keystore/keystore.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,8 @@ func (net *netParams) ReadFrom(r io.Reader) (int64, error) {
494494
*net = (netParams)(chaincfg.TestNet3Params)
495495
case wire.SimNet:
496496
*net = (netParams)(chaincfg.SimNetParams)
497+
case wire.TestNet:
498+
*net = (netParams)(chaincfg.RegressionNetParams)
497499

498500
// The legacy key store won't be compatible with custom signets, only
499501
// the main public one.

0 commit comments

Comments
 (0)