mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-20 10:11:49 +01:00
Fix adding wrong HashAddrID to pubKeyHashAddrIDs
This commit is contained in:
parent
dc967b7cc8
commit
a3091847b3
@ -302,7 +302,7 @@ func Register(params *Params) error {
|
|||||||
return ErrDuplicateNet
|
return ErrDuplicateNet
|
||||||
}
|
}
|
||||||
registeredNets[params.Net] = struct{}{}
|
registeredNets[params.Net] = struct{}{}
|
||||||
pubKeyHashAddrIDs[params.ScriptHashAddrID] = struct{}{}
|
pubKeyHashAddrIDs[params.PubKeyHashAddrID] = struct{}{}
|
||||||
scriptHashAddrIDs[params.ScriptHashAddrID] = struct{}{}
|
scriptHashAddrIDs[params.ScriptHashAddrID] = struct{}{}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user