Merge pull request #3974 from mempool/mononaut/missing-socket-init-data

Set missing websocket init data
This commit is contained in:
wiz 2023-07-16 19:55:12 +09:00 committed by GitHub
commit c0f33e6b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,7 +236,7 @@ class WebsocketHandler {
}
if (parsedMessage.action === 'init') {
if (!this.socketData['blocks']?.length || !this.socketData['da']) {
if (!this.socketData['blocks']?.length || !this.socketData['da'] || !this.socketData['backendInfo'] || !this.socketData['conversions']) {
this.updateSocketData();
}
if (!this.socketData['blocks']?.length) {