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