work on new block system
parent
ee04c6d2bf
commit
f8657deaa3
|
@ -213,7 +213,7 @@ class API:
|
|||
if self._utils.validateHash(data):
|
||||
if not os.path.exists('data/blocks/' + data + '.db'):
|
||||
block = Block(data.encode(), core=self._core)
|
||||
resp = base64.b64encode(block.getRaw()).decode()
|
||||
resp = base64.b64encode(block.getRaw().encode()).decode()
|
||||
|
||||
if len(resp) == 0:
|
||||
abort(404)
|
||||
|
|
Loading…
Reference in New Issue