transaction: don't convert p2pk to p2pkh address when displaying
also closes #4742
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user