refactor: update ValidateLinkProof method to include network interface parameter for improved link validation

This commit is contained in:
2025-12-30 01:27:36 -06:00
parent 5c19b76367
commit 37652b2d33

View File

@@ -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