Skip to content

Commit

Permalink
revert to use node.Parse to check hive multicast addresses
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Kai <[email protected]>
  • Loading branch information
GrapeBaBa committed Jan 31, 2025
1 parent 8039b77 commit 173e839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions portalwire/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (p *PortalProtocolAPI) RoutingTableInfo() *RoutingTableInfo {

func (p *PortalProtocolAPI) AddEnr(enr string) (bool, error) {
p.portalProtocol.Log.Debug("serving AddEnr", "enr", enr)
n, err := enode.ParseForAddEnr(enode.ValidSchemes, enr)
n, err := enode.Parse(enode.ValidSchemes, enr)
if err != nil {
return false, err
}
Expand All @@ -263,7 +263,7 @@ func (p *PortalProtocolAPI) AddEnr(enr string) (bool, error) {
func (p *PortalProtocolAPI) AddEnrs(enrs []string) bool {
// Note: unspecified RPC, but useful for our local testnet test
for _, enr := range enrs {
n, err := enode.ParseForAddEnr(enode.ValidSchemes, enr)
n, err := enode.Parse(enode.ValidSchemes, enr)
if err != nil {
continue
}
Expand Down

0 comments on commit 173e839

Please sign in to comment.