refactor: update ValidateLinkProof method to include network interface parameter for improved link validation
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.quad4.io/Networks/Reticulum-Go/pkg/common"
|
||||||
"git.quad4.io/Networks/Reticulum-Go/pkg/packet"
|
"git.quad4.io/Networks/Reticulum-Go/pkg/packet"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -38,8 +39,10 @@ func (m *mockLink) SetPacketDelivered(p interface{}, cb func(interface{})) {
|
|||||||
}
|
}
|
||||||
m.delivered[p] = cb
|
m.delivered[p] = cb
|
||||||
}
|
}
|
||||||
func (m *mockLink) HandleInbound(pkt *packet.Packet) error { return nil }
|
func (m *mockLink) HandleInbound(pkt *packet.Packet) error { return nil }
|
||||||
func (m *mockLink) ValidateLinkProof(pkt *packet.Packet) error { return nil }
|
func (m *mockLink) ValidateLinkProof(pkt *packet.Packet, networkIface common.NetworkInterface) error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
type testMessage struct {
|
type testMessage struct {
|
||||||
data []byte
|
data []byte
|
||||||
|
|||||||
Reference in New Issue
Block a user