From 62e3b5b28214be4b260c549c1f90fd7754d50182 Mon Sep 17 00:00:00 2001 From: Pouya Date: Fri, 22 Mar 2024 12:05:43 +0100 Subject: [PATCH] Fix broadcast packet type --- src/net/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/server.go b/src/net/server.go index 0a3c0b15..fe3d71a7 100644 --- a/src/net/server.go +++ b/src/net/server.go @@ -425,8 +425,8 @@ func processCorrectnessRecord(conn *websocket.Conn, messageType int, payload []b } ok, _ := bls.Verify(signature, hash, pk) - message := []byte("signature.invalid") + if ok { message = []byte("signature.accepted") broadcastPacket := datasets.BroadcastCorrectnessPacket{ @@ -447,7 +447,7 @@ func processCorrectnessRecord(conn *websocket.Conn, messageType int, payload []b // TODO: Safe to use 'go' here? consumer.Broadcast( append( - []byte{opcodes.EventLogBroadcast}, + []byte{opcodes.CorrectnessReportBroadcast}, broadcastPayload..., )) }