Smarter update algorithm for projected block viz

This commit is contained in:
Mononaut
2022-05-31 18:00:40 +00:00
parent 1aac96a6f6
commit c2802253b7
5 changed files with 234 additions and 15 deletions

View File

@@ -124,7 +124,7 @@ export class MempoolBlockOverviewComponent implements OnInit, OnDestroy, OnChang
} else if (blockMined) {
this.scene.replace(Object.values(this.txViews), remove, 'right')
} else {
this.scene.replace(Object.values(this.txViews), remove, 'left')
this.scene.update(add, remove, 'left')
}
this.lastBlockHeight = this.stateService.latestBlockHeight