Fix: Don't calculate block fee for Liquid.

Completing interfaces.
This commit is contained in:
softsimon
2020-06-17 15:01:58 +07:00
parent 2f89612075
commit 34f83998fe
3 changed files with 39 additions and 61 deletions

View File

@@ -108,7 +108,7 @@ export class BlockComponent implements OnInit, OnDestroy {
),
)
.subscribe((transactions: Transaction[]) => {
if (this.fees === undefined && transactions[0]) {
if (this.fees === undefined && transactions[0] && this.network !== 'liquid') {
this.fees = transactions[0].vout.reduce((acc: number, curr: Vout) => acc + curr.value, 0) / 100000000 - this.blockSubsidy;
}
this.transactions = transactions;