Mise à jour de GitLab prévue ce samedi 23 octobre 2021 à partir de 9h00 CET

Commit fb312614 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] #1102 Take care of WS2P/heads message

parent 134030e2
......@@ -57,7 +57,7 @@ export class WS2PServerMessageHandler implements WS2PMessageHandler {
const raw = dto.getRawSigned()
await this.server.writeRawPeer(raw)
}
else if (json.body.heads) {
else if (json.body.heads && typeof json.body.heads === "object" && json.body.heads.length !== undefined) {
await this.cluster.headsReceived(json.body.heads || [])
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment