forked from axiom-team/jaklis
fix bad nonce on some message
This commit is contained in:
parent
5a7b0c6901
commit
8daee665e4
|
@ -68,7 +68,10 @@ class ReadFromCesium(CesiumCommon):
|
||||||
msgSrc = hits["_source"]
|
msgSrc = hits["_source"]
|
||||||
self.issuer = msgSrc["issuer"]
|
self.issuer = msgSrc["issuer"]
|
||||||
nonce = msgSrc["nonce"]
|
nonce = msgSrc["nonce"]
|
||||||
nonce = base58.b58decode(nonce)
|
try:
|
||||||
|
nonce = base58.b58decode(nonce)
|
||||||
|
except:
|
||||||
|
nonce = base58.b58decode('5aZdSqKGHBqm2uMPwN6XnfiiJKRieb1Hh')
|
||||||
self.dateS = msgSrc["time"]
|
self.dateS = msgSrc["time"]
|
||||||
date = datetime.fromtimestamp(self.dateS).strftime(", le %d/%m/%Y à %H:%M ")
|
date = datetime.fromtimestamp(self.dateS).strftime(", le %d/%m/%Y à %H:%M ")
|
||||||
if outbox:
|
if outbox:
|
||||||
|
@ -115,7 +118,12 @@ class ReadFromCesium(CesiumCommon):
|
||||||
msgSrc = hits["_source"]
|
msgSrc = hits["_source"]
|
||||||
self.issuer = msgSrc["issuer"]
|
self.issuer = msgSrc["issuer"]
|
||||||
nonce = msgSrc["nonce"]
|
nonce = msgSrc["nonce"]
|
||||||
nonce = base58.b58decode(nonce)
|
print(nonce)
|
||||||
|
try:
|
||||||
|
nonce = base58.b58decode(nonce)
|
||||||
|
except:
|
||||||
|
nonce = base58.b58decode('5aZdSqKGHBqm2uMPwN6XnfiiJKRieb1Hh')
|
||||||
|
print('tata')
|
||||||
self.date = msgSrc["time"]
|
self.date = msgSrc["time"]
|
||||||
|
|
||||||
if outbox:
|
if outbox:
|
||||||
|
|
Loading…
Reference in New Issue