1
0

get_tx_fee

This commit is contained in:
ThomasV
2014-09-15 12:57:56 +02:00
parent b305dd4a89
commit 590659ff4d
2 changed files with 5 additions and 1 deletions

View File

@@ -693,6 +693,10 @@ class Abstract_Wallet(object):
return default_label
def get_tx_fee(self, tx):
# this method can be overloaded
return tx.get_fee()
def estimated_fee(self, tx):
estimated_size = len(tx.serialize(-1))/2
fee = int(self.fee_per_kb*estimated_size/1000.)