mirror of
https://github.com/mempool/mempool.git
synced 2024-11-19 09:52:14 +01:00
Merge pull request #4772 from mempool/mononaut/replacement-skeleton
Fix recent replacements skeleton loader
This commit is contained in:
commit
dd7c8f2934
@ -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…
Reference in New Issue
Block a user