Skip to content

Commit

Permalink
feat(core/btc): suppoet testnet config
Browse files Browse the repository at this point in the history
  • Loading branch information
Gkirito committed Jul 5, 2023
1 parent 07e37fc commit 44e9da7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/btc/chainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
const (
ChainSignet = "signet"
ChainMainnet = "mainnet"
ChainTestnet = "testnet"
// ComingChat used, similar mainnet's alias.
ChainBitcoin = "bitcoin"
)
Expand All @@ -25,6 +26,8 @@ func netParamsOf(chainnet string) (*chaincfg.Params, error) {
switch chainnet {
case ChainSignet:
return &chaincfg.SigNetParams, nil
case ChainTestnet:
return &chaincfg.TestNet3Params, nil
case ChainMainnet, ChainBitcoin:
return &chaincfg.MainNetParams, nil
}
Expand Down

0 comments on commit 44e9da7

Please sign in to comment.