mesh: remove unused MsgSyncRequest/MsgSyncReply types
Fuck em. Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I725b137678112580cd7445a8d12f52f56a6a6964
This commit is contained in:
parent
4b2c863bc1
commit
e567491856
3 changed files with 4 additions and 6 deletions
|
|
@ -13,7 +13,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
maxPacketSize = 65536 // UDP max payload
|
||||
maxPacketSize = 65536 // UDP max payload
|
||||
headerSize = ed25519.PublicKeySize + ed25519.SignatureSize // 32 + 64 = 96
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ func TestAnnounceAndReceive(t *testing.T) {
|
|||
func TestRejectUnknownSender(t *testing.T) {
|
||||
store := mesh.NewRouteStore()
|
||||
|
||||
// Listener node — will reject messages not from trusted
|
||||
// Listener node, this'll reject messages not from trusted
|
||||
trusted, err := mesh.NewNode("", nil)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
@ -90,7 +90,7 @@ func TestRejectUnknownSender(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestRejectTamperedMessage(t *testing.T) {
|
||||
// This is covered by TestVerifyFailsOnTamper in mesh_test.go at the crypto level.
|
||||
// This is covered by TestVerifyFailsOnTamper the mesh tests on the crypto level.
|
||||
// Here we verify the full pipeline rejects a re-signed-but-tampered body.
|
||||
store := mesh.NewRouteStore()
|
||||
node, err := mesh.NewNode("", store)
|
||||
|
|
|
|||
|
|
@ -18,9 +18,7 @@ import (
|
|||
type MsgType uint8
|
||||
|
||||
const (
|
||||
MsgAnnounce MsgType = 1
|
||||
MsgSyncRequest MsgType = 2
|
||||
MsgSyncReply MsgType = 3
|
||||
MsgAnnounce MsgType = 1
|
||||
)
|
||||
|
||||
// Wire format for gossip messages.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue