Skip to content

Commit

Permalink
修复JKC不完整
Browse files Browse the repository at this point in the history
  • Loading branch information
george012 committed Dec 4, 2024
1 parent 49d30a2 commit 9c80506
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion coin_flags/bip_slip_coin_number.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ const (
BIP_SLIP_CoinNumber_DogmCoin = 1 //not found dogm slip
BIP_SLIP_CoinNumber_Earthcoin = 1 // ?=earths 406
BIP_SLIP_CoinNumber_Dingocoin = 1 //not found dingo slip
BIP_SLIP_CoinNumber_Luckycoin = 1 //not found dingo slip
BIP_SLIP_CoinNumber_Luckycoin = 1 //not found lky slip
BIP_SLIP_CoinNumber_Junkcoin = 1 //not found jkc slip

)

// GetBIPSLIPCoinNumber
Expand Down Expand Up @@ -67,6 +69,8 @@ func (cf CoinFlag) GetBIPSLIPCoinNumber() uint32 {
return BIP_SLIP_CoinNumber_Dingocoin
case CoinFlagLKY:
return BIP_SLIP_CoinNumber_Luckycoin
case CoinFlagJKC:
return BIP_SLIP_CoinNumber_Junkcoin
default:
return BIP_SLIP_CoinNumber_BitCoinTestNet
}
Expand Down
2 changes: 2 additions & 0 deletions coin_flags/coin_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ func (cf CoinFlag) CoinName() string {
return "DINGO"
case CoinFlagLKY:
return "LKY"
case CoinFlagJKC:
return "JKC"
default:
return "none"
}
Expand Down
2 changes: 1 addition & 1 deletion coin_flags/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func GetCoinFlagByCoinName(name string) CoinFlag {
case "Luckycoin", "LuckyCoin", "luckyCoin", "luckycoin", "LUCKYCOIN", "LKY", "Lky", "lky":
return CoinFlagLKY
case "Junkcoin", "JunkCoin", "junkCoin", "junkcoin", "JUNKCOIN", "JKC", "Jkc", "jkc":
return CoinFlagLKY
return CoinFlagJKC
default:
return CoinFlagNone
}
Expand Down

0 comments on commit 9c80506

Please sign in to comment.