1
0

TxOutput usage: trivial clean-up

This commit is contained in:
SomberNight
2019-06-19 21:59:49 +02:00
parent c7a8540d06
commit 5effaaf428
2 changed files with 4 additions and 4 deletions

View File

@@ -1043,7 +1043,7 @@ class Transaction:
return sum(x['value'] for x in self.inputs())
def output_value(self):
return sum(val for tp, addr, val in self.outputs())
return sum(o.value for o in self.outputs())
def get_fee(self):
return self.input_value() - self.output_value()