Fix total block fees calculation

This commit is contained in:
Mononaut 2022-03-05 13:01:07 -06:00
parent 0e6c8159af
commit 07921f61ce
2 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@
import TxRender from './TxRender.svelte'
import getTxStream from '../controllers/TxStream.js'
import { settings, overlay, serverConnected, serverDelay, txCount, mempoolCount, mempoolScreenHeight, frameRate, avgFrameRate, blockVisible, currentBlock, selectedTx, blockAreaSize, devEvents, devSettings } from '../stores.js'
import BitcoinBlock from '../models/BitcoinBlock.js'
import BlockInfo from '../components/BlockInfo.svelte'
import TxInfo from '../components/TxInfo.svelte'
import Sidebar from '../components/Sidebar.svelte'

View File

@ -15,7 +15,7 @@ export default class BitcoinBlock {
this.txns = txns
this.coinbase = new BitcoinTx(this.txns[0])
if (fees) {
this.fees = fees + this.coinbase.value
this.fees = fees
} else {
this.fees = null
}