1
0

transaction: don't convert p2pk to p2pkh address when displaying

also closes #4742
This commit is contained in:
SomberNight
2018-10-01 04:58:26 +02:00
parent ab1ec57429
commit 4d43d12abf
7 changed files with 26 additions and 27 deletions

View File

@@ -681,7 +681,7 @@ class AddressSynchronizer(PrintError):
delta += v
return delta
def get_wallet_delta(self, tx):
def get_wallet_delta(self, tx: Transaction):
""" effect of tx on wallet """
is_relevant = False # "related to wallet?"
is_mine = False
@@ -708,10 +708,10 @@ class AddressSynchronizer(PrintError):
is_partial = True
if not is_mine:
is_partial = False
for addr, value in tx.get_outputs():
v_out += value
if self.is_mine(addr):
v_out_mine += value
for o in tx.outputs():
v_out += o.value
if self.is_mine(o.address):
v_out_mine += o.value
is_relevant = True
if is_pruned:
# some inputs are mine: