Limit special blocks by network, add future halvings

This commit is contained in:
Mononaut
2023-03-14 16:58:02 +09:00
parent 881af309ab
commit 7bf8fea9f2
5 changed files with 75 additions and 13 deletions

View File

@@ -269,6 +269,10 @@ export class BlockchainBlocksComponent implements OnInit, OnChanges, OnDestroy {
this.cd.markForCheck();
}
isSpecial(height: number): boolean {
return this.specialBlocks[height]?.networks.includes(this.stateService.network || 'mainnet') ? true : false;
}
getStyleForBlock(block: BlockchainBlock, index: number, animateEnterFrom: number = 0) {
if (!block || block.placeholder) {
return this.getStyleForPlaceholderBlock(index, animateEnterFrom);