Address tracking and notification sounds.

This commit is contained in:
softsimon
2020-02-26 04:29:57 +07:00
parent b45f5c31cd
commit 12c9b80a64
13 changed files with 110 additions and 25 deletions

View File

@@ -59,6 +59,7 @@ export class BlockComponent implements OnInit {
this.block = block;
this.blockHeight = block.height;
this.isLoadingBlock = false;
this.setBlockSubsidy();
this.getBlockTransactions(block.id);
},
(error) => {
@@ -74,6 +75,9 @@ export class BlockComponent implements OnInit {
this.conversions = conversions;
});
}
setBlockSubsidy() {
let halvenings = Math.floor(this.block.height / 210000);
while (halvenings > 0) {
this.blockSubsidy = this.blockSubsidy / 2;