frontend resync recent blocks when necessary

This commit is contained in:
Mononaut committed 2023-06-30 19:43:04 -04:00
1 parent ca6ddd609d
commit eaad63a082
3 files changed
+11 -2

No files matched your search

+1 -1
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'];
}