fix: add payload to relay ping messages to avoid poor relay peer scoring

Note that this keep alive mechanism should probably be removed.
This commit is contained in:
fryorcraken.eth 2023-03-10 12:46:12 +11:00
parent e359ab8616
commit 560c393662
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ export class KeepAliveManager {
const interval = setInterval(() => {
log("Sending Waku Relay ping message");
relay
.send(encoder, { payload: new Uint8Array() })
.send(encoder, { payload: new Uint8Array([1]) })
.catch((e) => log("Failed to send relay ping", e));
}, relayPeriodSecs * 1000);
this.relayKeepAliveTimers.set(peerId, interval);