OSDN Git Service

edit bytom bench segwit (#591)
authorwyjDoraemon <46176410+wyjDoraemon@users.noreply.github.com>
Thu, 12 Aug 2021 06:31:58 +0000 (01:31 -0500)
committerGitHub <noreply@github.com>
Thu, 12 Aug 2021 06:31:58 +0000 (14:31 +0800)
consensus/general.go

index 7507c5a..9b1da10 100644 (file)
@@ -245,12 +245,12 @@ func BlockSubsidy(height uint64) uint64 {
 
 // BytomMainNetParams is the config for bytom mainnet
 func BytomMainNetParams(vaporParam *Params) *Params {
-       bech32HRPSegwit := "sm"
+       bech32HRPSegwit := "sn"
        switch vaporParam.Name {
        case "main":
-               bech32HRPSegwit = "bm"
+               bech32HRPSegwit = "bn"
        case "test":
-               bech32HRPSegwit = "tm"
+               bech32HRPSegwit = "tn"
        }
        return &Params{Bech32HRPSegwit: bech32HRPSegwit}
 }
@@ -263,4 +263,3 @@ func InitActiveNetParams(chainID string) error {
        }
        return nil
 }
-