From 54350bcbc4c806b55ed4bdaf2a13489984f9630d Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sun, 3 Jun 2018 20:13:30 -0400 Subject: [PATCH] BaseOutputAmountEstimator --- torba/basetransaction.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/torba/basetransaction.py b/torba/basetransaction.py index ee23b0929..924186959 100644 --- a/torba/basetransaction.py +++ b/torba/basetransaction.py @@ -97,13 +97,13 @@ class BaseInput(InputOutput): class BaseOutputAmountEstimator(object): - __slots__ = 'coin', 'output', 'fee', 'effective_amount' + __slots__ = 'coin', 'txi', 'txo', 'fee', 'effective_amount' def __init__(self, coin, txo): # type: (BaseCoin, BaseOutput) -> None self.coin = coin - self.output = txo - txi = coin.transaction_class.input_class.spend(txo) - self.fee = coin.get_input_output_fee(txi) + self.txo = txo + self.txi = coin.transaction_class.input_class.spend(txo) + self.fee = coin.get_input_output_fee(self.txi) self.effective_amount = txo.amount - self.fee def __lt__(self, other):