Skip to content

Commit

Permalink
Fix broadcast packet type
Browse files Browse the repository at this point in the history
  • Loading branch information
pouya-eghbali committed Mar 22, 2024
1 parent 6ece2aa commit 62e3b5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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...,
))
}
Expand Down

0 comments on commit 62e3b5b

Please sign in to comment.