Merge pull request #5538 from mempool/natsoni/fix-wrong-block-skeleton

Fix race condition between accelerations and block audit api calls
This commit is contained in:
softsimon 2024-09-22 12:39:19 +08:00 committed by GitHub
commit 1038b4f908
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -327,7 +327,7 @@ export class BlockComponent implements OnInit, OnDestroy {
})
).subscribe((accelerations) => {
this.accelerations = accelerations;
if (accelerations.length) {
if (accelerations.length && this.strippedTransactions) { // Don't call setupBlockAudit if we don't have transactions yet; it will be called later in overviewSubscription
this.setupBlockAudit();
}
});