Use bitcoin RPC getblock because esplora returns int for difficulty - Fix some css in mining dashboard

This commit is contained in:
nymkappa
2022-03-13 11:38:45 +01:00
parent bec3f214b5
commit 0730053d5d
5 changed files with 94 additions and 84 deletions

View File

@@ -36,8 +36,8 @@ export class MiningDashboardComponent implements OnInit {
return {
'totalReward': totalReward,
'rewardPerTx': totalReward / totalTx,
'feePerTx': totalFee / totalTx,
'rewardPerTx': Math.round(totalReward / totalTx),
'feePerTx': Math.round(totalFee / totalTx),
}
})
);