Exclude change from history
This commit is contained in:
parent
c3df37a568
commit
23652b27f8
|
@ -81,6 +81,8 @@ class History:
|
|||
res = self.historyDoc['transactionsHistory'][sens]
|
||||
for bloc in res:
|
||||
output = bloc['outputs'][0]
|
||||
outPubkey = output.split("SIG(")[1].replace(')','')
|
||||
if sens in ('received','receiving') or self.pubkey != outPubkey:
|
||||
trans.append(i)
|
||||
trans[i] = []
|
||||
trans[i].append(sens)
|
||||
|
@ -89,7 +91,7 @@ class History:
|
|||
else:
|
||||
trans[i].append(bloc['writtenTime'])
|
||||
if sens in ('sent','sending'):
|
||||
trans[i].append(output.split("SIG(")[1].replace(')',''))
|
||||
trans[i].append(outPubkey)
|
||||
else:
|
||||
trans[i].append(bloc['issuers'][0])
|
||||
amount = int(output.split(':')[0])
|
||||
|
|
Reference in New Issue