Skip to content

Commit

Permalink
unsafeClosePeers Convert all uppercase and lowercase to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
sheldon committed Nov 14, 2022
1 parent b315b47 commit e973ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/core/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func UnsafeDialSeeds(ctx *rpctypes.Context, seeds []string) (*ctypes.ResultDialS
func UnsafeClosePeers(ctx *rpctypes.Context, peers []string) (*ctypes.ResultClosePeers, error) {
peersSet := env.P2PPeers.Peers()
for _, peer := range peers {
peerObj := peersSet.Get(p2p.ID(peer))
peerObj := peersSet.Get(p2p.ID(strings.ToLower(peer)))
if peerObj == nil || peerObj.ID() == "" {
continue
}
Expand Down

0 comments on commit e973ebc

Please sign in to comment.