1
0

trustedcoin: restore the display of fees

This commit is contained in:
ThomasV
2016-02-02 16:26:47 +01:00
parent eb36884c66
commit 5aa0a87d7a
2 changed files with 14 additions and 1 deletions

View File

@@ -307,6 +307,13 @@ class TrustedCoinPlugin(BasePlugin):
def is_enabled(self):
return True
@hook
def get_additional_fee(self, wallet, tx):
address = wallet.billing_info['billing_address']
for _type, addr, amount in tx.outputs():
if _type == TYPE_ADDRESS and addr == address:
return amount
def request_billing_info(self, wallet):
billing_info = server.get(wallet.get_user_id()[1])
billing_address = make_billing_address(wallet, billing_info['billing_index'])