diff --git a/domain/dagconfig/genesis.go b/domain/dagconfig/genesis.go index cba173cbf..13547821b 100644 --- a/domain/dagconfig/genesis.go +++ b/domain/dagconfig/genesis.go @@ -22,7 +22,7 @@ var genesisTxPayload = []byte{ 0x00, 0x00, // Script version 0x01, // Varint 0x00, // OP-FALSE - + } // genesisCoinbaseTx is the coinbase transaction for the genesis blocks for @@ -38,9 +38,7 @@ var genesisHash = externalapi.NewDomainHashFromByteArray(&[externalapi.DomainHas // genesisMerkleRoot is the hash of the first transaction in the genesis block // for the main network. -var genesisMerkleRoot = externalapi.NewDomainHashFromByteArray(&[externalapi.DomainHashSize]byte{ - 0x8e, 0xc8, 0x98, 0x56, 0x8c, 0x68, 0x1, 0xd1, 0x3d, 0xf4, 0xee, 0x6e, 0x2a, 0x1b, 0x54, 0xb7, 0xe6, 0x23, 0x6f, 0x67, 0x1f, 0x20, 0x95, 0x4f, 0x5, 0x30, 0x64, 0x10, 0x51, 0x8e, 0xeb, 0x32, -}) +var genesisMerkleRoot = externalapi.NewDomainHashFromByteArray(&[externalapi.DomainHashSize]byte{}) // genesisBlock defines the genesis block of the block DAG which serves as the // public transaction ledger for the main network. diff --git a/util/address.go b/util/address.go index 43dc721da..28847e08c 100644 --- a/util/address.go +++ b/util/address.go @@ -54,10 +54,10 @@ const ( // Map from strings to Bech32 address prefix constants for parsing purposes. var stringsToBech32Prefixes = map[string]Bech32Prefix{ - "kaspa": Bech32PrefixKaspa, - "kaspadev": Bech32PrefixKaspaDev, - "kaspatest": Bech32PrefixKaspaTest, - "kaspasim": Bech32PrefixKaspaSim, + "zoomy": Bech32PrefixKaspa, + "zoomydev": Bech32PrefixKaspaDev, + "zoomytest": Bech32PrefixKaspaTest, + "zoomysim": Bech32PrefixKaspaSim, } // ParsePrefix attempts to parse a Bech32 address prefix. diff --git a/util/amount.go b/util/amount.go index eb82f9341..acf05856a 100644 --- a/util/amount.go +++ b/util/amount.go @@ -5,10 +5,11 @@ package util import ( - "github.com/pkg/errors" - "github.com/zoomy-network/zoomyd/domain/consensus/utils/constants" "math" "strconv" + + "github.com/pkg/errors" + "github.com/zoomy-network/zoomyd/domain/consensus/utils/constants" ) // AmountUnit describes a method of converting an Amount to something @@ -34,19 +35,19 @@ const ( func (u AmountUnit) String() string { switch u { case AmountMegaKAS: - return "MKAS" + return "MKX3" case AmountKiloKAS: - return "kKAS" + return "kKX3" case AmountKAS: - return "KAS" + return "KX3" case AmountMilliKAS: - return "mKAS" + return "mKX3" case AmountMicroKAS: - return "μKAS" + return "μKX3" case AmountSompi: return "Sompi" default: - return "1e" + strconv.FormatInt(int64(u), 10) + " KAS" + return "1e" + strconv.FormatInt(int64(u), 10) + " KX3" } } @@ -84,7 +85,7 @@ func NewAmount(f float64) (Amount, error) { case math.IsInf(f, 1): fallthrough case math.IsInf(f, -1): - return 0, errors.New("invalid kaspa amount") + return 0, errors.New("invalid zoomy amount") } return round(f * constants.SompiPerKaspa), nil