Exclude change from history
This commit is contained in:
parent
c3df37a568
commit
23652b27f8
|
@ -81,22 +81,24 @@ 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]
|
||||||
trans.append(i)
|
outPubkey = output.split("SIG(")[1].replace(')','')
|
||||||
trans[i] = []
|
if sens in ('received','receiving') or self.pubkey != outPubkey:
|
||||||
trans[i].append(sens)
|
trans.append(i)
|
||||||
if sens in ('receiving','sending'):
|
trans[i] = []
|
||||||
trans[i].append(int(time.time()))
|
trans[i].append(sens)
|
||||||
else:
|
if sens in ('receiving','sending'):
|
||||||
trans[i].append(bloc['writtenTime'])
|
trans[i].append(int(time.time()))
|
||||||
if sens in ('sent','sending'):
|
else:
|
||||||
trans[i].append(output.split("SIG(")[1].replace(')',''))
|
trans[i].append(bloc['writtenTime'])
|
||||||
else:
|
if sens in ('sent','sending'):
|
||||||
trans[i].append(bloc['issuers'][0])
|
trans[i].append(outPubkey)
|
||||||
amount = int(output.split(':')[0])
|
else:
|
||||||
base = int(output.split(':')[1])
|
trans[i].append(bloc['issuers'][0])
|
||||||
trans[i].append(amount*pow(10,base)/100)
|
amount = int(output.split(':')[0])
|
||||||
trans[i].append(bloc['comment'])
|
base = int(output.split(':')[1])
|
||||||
i += 1
|
trans[i].append(amount*pow(10,base)/100)
|
||||||
|
trans[i].append(bloc['comment'])
|
||||||
|
i += 1
|
||||||
|
|
||||||
trans.sort(key=lambda x: x[1])
|
trans.sort(key=lambda x: x[1])
|
||||||
|
|
||||||
|
|
Reference in New Issue