mirror of
https://github.com/mempool/mempool.git
synced 2025-03-13 11:36:07 +01:00
Fix recent replacements skeleton loader
This commit is contained in:
parent
c12e664b9a
commit
404892174d
2 changed files with 6 additions and 5 deletions
|
@ -52,7 +52,7 @@ class WebsocketHandler {
|
|||
|
||||
private socketData: { [key: string]: string } = {};
|
||||
private serializedInitData: string = '{}';
|
||||
private lastRbfSummary: ReplacementInfo | null = null;
|
||||
private lastRbfSummary: ReplacementInfo[] | null = null;
|
||||
|
||||
constructor() { }
|
||||
|
||||
|
@ -464,10 +464,11 @@ class WebsocketHandler {
|
|||
let rbfReplacements;
|
||||
let fullRbfReplacements;
|
||||
let rbfSummary;
|
||||
if (Object.keys(rbfChanges.trees).length) {
|
||||
if (Object.keys(rbfChanges.trees).length || !this.lastRbfSummary) {
|
||||
rbfReplacements = rbfCache.getRbfTrees(false);
|
||||
fullRbfReplacements = rbfCache.getRbfTrees(true);
|
||||
rbfSummary = rbfCache.getLatestRbfSummary();
|
||||
rbfSummary = rbfCache.getLatestRbfSummary() || [];
|
||||
this.lastRbfSummary = rbfSummary;
|
||||
}
|
||||
|
||||
for (const deletedTx of deletedTransactions) {
|
||||
|
|
|
@ -330,8 +330,8 @@ export class WebsocketService {
|
|||
this.stateService.rbfLatest$.next(response.rbfLatest);
|
||||
}
|
||||
|
||||
if (response.rbfLatestSummary) {
|
||||
this.stateService.rbfLatestSummary$.next(response.rbfLatestSummary);
|
||||
if (response.rbfLatestSummary !== undefined) {
|
||||
this.stateService.rbfLatestSummary$.next(response.rbfLatestSummary || []);
|
||||
}
|
||||
|
||||
if (response.txReplaced) {
|
||||
|
|
Loading…
Add table
Reference in a new issue