chore: remove unused code

This commit is contained in:
Igor Sirotin 2025-12-08 20:55:56 +00:00
parent 802ee666e4
commit 288f5c6259
No known key found for this signature in database
GPG Key ID: 0EABBCB40CB9AD4A

View File

@ -1,10 +1,9 @@
package enr
import (
"errors"
"github.com/ethereum/go-ethereum/p2p/enode"
"github.com/ethereum/go-ethereum/p2p/enr"
"github.com/waku-org/go-waku/waku/v2/protocol"
)
@ -43,21 +42,6 @@ func WithWakuRelaySharding(rs protocol.RelayShards) ENROption {
}
}
func WithWakuRelayShardingTopics(topics ...string) ENROption {
return func(localnode *enode.LocalNode) error {
rs, err := protocol.TopicsToRelayShards(topics...)
if err != nil {
return err
}
if len(rs) != 1 {
return errors.New("expected a single RelayShards")
}
return WithWakuRelaySharding(rs[0])(localnode)
}
}
// ENR record accessors
func RelayShardList(record *enr.Record) (*protocol.RelayShards, error) {