prefer const over let

This commit is contained in:
Antoni Spaanderman 2022-01-24 20:25:22 +01:00
parent 30632e9e11
commit 44021a3cb3
No known key found for this signature in database
GPG Key ID: AE0B68E552E5DF8C

View File

@ -216,7 +216,7 @@ export class BlockComponent implements OnInit, OnDestroy {
this.blockSubsidy = 0;
return;
}
let halvings = Math.floor(this.block.height / (this.network === 'regtest' ? 150 : 210000));
const halvings = Math.floor(this.block.height / (this.network === 'regtest' ? 150 : 210000));
this.blockSubsidy = 50 * 2 ** -halvings;
}