mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-06 14:16:43 +00:00
[NOD-575] Change devent address prefix to kaspadev. (#598)
This commit is contained in:
parent
c0463a8a68
commit
ed606bfda3
@ -448,7 +448,7 @@ var DevnetParams = Params{
|
|||||||
AcceptUnroutable: true,
|
AcceptUnroutable: true,
|
||||||
|
|
||||||
// Human-readable part for Bech32 encoded addresses
|
// Human-readable part for Bech32 encoded addresses
|
||||||
Prefix: util.Bech32PrefixKaspaTest,
|
Prefix: util.Bech32PrefixKaspaDev,
|
||||||
|
|
||||||
// Address encoding magics
|
// Address encoding magics
|
||||||
PrivateKeyID: 0xef, // starts with 9 (uncompressed) or c (compressed)
|
PrivateKeyID: 0xef, // starts with 9 (uncompressed) or c (compressed)
|
||||||
|
@ -43,6 +43,9 @@ const (
|
|||||||
// Prefix for the main network.
|
// Prefix for the main network.
|
||||||
Bech32PrefixKaspa
|
Bech32PrefixKaspa
|
||||||
|
|
||||||
|
// Prefix for the dev network.
|
||||||
|
Bech32PrefixKaspaDev
|
||||||
|
|
||||||
// Prefix for the regression test network.
|
// Prefix for the regression test network.
|
||||||
Bech32PrefixKaspaReg
|
Bech32PrefixKaspaReg
|
||||||
|
|
||||||
@ -56,6 +59,7 @@ const (
|
|||||||
// Map from strings to Bech32 address prefix constants for parsing purposes.
|
// Map from strings to Bech32 address prefix constants for parsing purposes.
|
||||||
var stringsToBech32Prefixes = map[string]Bech32Prefix{
|
var stringsToBech32Prefixes = map[string]Bech32Prefix{
|
||||||
"kaspa": Bech32PrefixKaspa,
|
"kaspa": Bech32PrefixKaspa,
|
||||||
|
"kaspadev": Bech32PrefixKaspaDev,
|
||||||
"kaspareg": Bech32PrefixKaspaReg,
|
"kaspareg": Bech32PrefixKaspaReg,
|
||||||
"kaspatest": Bech32PrefixKaspaTest,
|
"kaspatest": Bech32PrefixKaspaTest,
|
||||||
"kaspasim": Bech32PrefixKaspaSim,
|
"kaspasim": Bech32PrefixKaspaSim,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user