mirror of
https://github.com/logos-messaging/go-discover.git
synced 2026-01-08 07:53:09 +00:00
chore: change project org
This commit is contained in:
parent
069eee20a3
commit
2f43d5f6c7
@ -25,7 +25,7 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||||
"github.com/ethereum/go-ethereum/p2p/enr"
|
"github.com/ethereum/go-ethereum/p2p/enr"
|
||||||
"github.com/ethereum/go-ethereum/p2p/netutil"
|
"github.com/ethereum/go-ethereum/p2p/netutil"
|
||||||
"github.com/status-im/go-discover/discover/v5wire"
|
"github.com/waku-org/go-discover/discover/v5wire"
|
||||||
)
|
)
|
||||||
|
|
||||||
// UDPConn is a network connection on which discovery can operate.
|
// UDPConn is a network connection on which discovery can operate.
|
||||||
@ -52,6 +52,7 @@ type Config struct {
|
|||||||
Log log.Logger // if set, log messages go here
|
Log log.Logger // if set, log messages go here
|
||||||
ValidSchemes enr.IdentityScheme // allowed identity schemes
|
ValidSchemes enr.IdentityScheme // allowed identity schemes
|
||||||
V5Config V5Config // DiscV5 settings
|
V5Config V5Config // DiscV5 settings
|
||||||
|
ValidNodeFn func(enode.Node) bool // function to validate a node before it's added to routing tables
|
||||||
Clock mclock.Clock
|
Clock mclock.Clock
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -26,7 +26,7 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||||
"github.com/ethereum/go-ethereum/p2p/enr"
|
"github.com/ethereum/go-ethereum/p2p/enr"
|
||||||
"github.com/status-im/go-discover/discover/v4wire"
|
"github.com/waku-org/go-discover/discover/v4wire"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestUDPv4_Lookup(t *testing.T) {
|
func TestUDPv4_Lookup(t *testing.T) {
|
||||||
|
|||||||
@ -33,7 +33,7 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/log"
|
"github.com/ethereum/go-ethereum/log"
|
||||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||||
"github.com/ethereum/go-ethereum/p2p/netutil"
|
"github.com/ethereum/go-ethereum/p2p/netutil"
|
||||||
"github.com/status-im/go-discover/discover/v4wire"
|
"github.com/waku-org/go-discover/discover/v4wire"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
|
|||||||
@ -34,8 +34,8 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/log"
|
"github.com/ethereum/go-ethereum/log"
|
||||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||||
"github.com/ethereum/go-ethereum/p2p/enr"
|
"github.com/ethereum/go-ethereum/p2p/enr"
|
||||||
"github.com/status-im/go-discover/discover/v4wire"
|
"github.com/waku-org/go-discover/discover/v4wire"
|
||||||
"github.com/status-im/go-discover/internal/testlog"
|
"github.com/waku-org/go-discover/internal/testlog"
|
||||||
)
|
)
|
||||||
|
|
||||||
// shared test variables
|
// shared test variables
|
||||||
|
|||||||
@ -34,7 +34,7 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||||
"github.com/ethereum/go-ethereum/p2p/enr"
|
"github.com/ethereum/go-ethereum/p2p/enr"
|
||||||
"github.com/ethereum/go-ethereum/p2p/netutil"
|
"github.com/ethereum/go-ethereum/p2p/netutil"
|
||||||
"github.com/status-im/go-discover/discover/v5wire"
|
"github.com/waku-org/go-discover/discover/v5wire"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@ -32,8 +32,8 @@ import (
|
|||||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||||
"github.com/ethereum/go-ethereum/p2p/enr"
|
"github.com/ethereum/go-ethereum/p2p/enr"
|
||||||
"github.com/ethereum/go-ethereum/rlp"
|
"github.com/ethereum/go-ethereum/rlp"
|
||||||
"github.com/status-im/go-discover/discover/v5wire"
|
"github.com/waku-org/go-discover/discover/v5wire"
|
||||||
"github.com/status-im/go-discover/internal/testlog"
|
"github.com/waku-org/go-discover/internal/testlog"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Real sockets, real crypto: this test checks end-to-end connectivity for UDPv5.
|
// Real sockets, real crypto: this test checks end-to-end connectivity for UDPv5.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user