use bytes instead of str when inserting
This commit is contained in:
parent
3c8d1a5b7f
commit
ff8128ae33
@ -731,7 +731,7 @@ class Core:
|
|||||||
metadata['powRandomToken'] = powToken
|
metadata['powRandomToken'] = powToken
|
||||||
metadata['time'] = str(self._utils.getEpoch())
|
metadata['time'] = str(self._utils.getEpoch())
|
||||||
|
|
||||||
payload = json.dumps(metadata) + '\n' + data
|
payload = json.dumps(metadata).encode() + b'\n' + data
|
||||||
retData = self.setData(payload)
|
retData = self.setData(payload)
|
||||||
self.addToBlockDB(retData, selfInsert=True, dataSaved=True)
|
self.addToBlockDB(retData, selfInsert=True, dataSaved=True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user