frontend resync recent blocks when necessary

This commit is contained in:
Mononaut
2023-06-12 16:32:04 -04:00
parent 9c63ad4e49
commit b951ff573d
3 changed files with 11 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ class WebsocketHandler {
}
// send initial data when a client first starts a subscription
if (wantNow['want-blocks']) {
if (wantNow['want-blocks'] || (parsedMessage && parsedMessage['refresh-blocks'])) {
response['blocks'] = this.socketData['blocks'];
}