Add stale block banner immediately on reorg

This commit is contained in:
Mononaut
2023-07-10 13:57:18 +09:00
parent e8c703fdbc
commit 842ac8ce39
3 changed files with 21 additions and 4 deletions

View File

@@ -142,6 +142,9 @@ export class BlockComponent implements OnInit, OnDestroy {
if (block?.extras?.reward != undefined) {
this.fees = block.extras.reward / 100000000 - this.blockSubsidy;
}
} else if (block.height === this.block.height) {
this.block.stale = true;
this.block.canonical = block.id;
}
}
});