mirror of
https://github.com/mempool/mempool.git
synced 2025-02-27 16:46:32 +01:00
prefer const
over let
This commit is contained in:
parent
30632e9e11
commit
44021a3cb3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue