work on new block system

This commit is contained in:
Kevin Froman 2018-06-08 02:47:14 -05:00
parent ee04c6d2bf
commit f8657deaa3
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B

View File

@ -213,7 +213,7 @@ class API:
if self._utils.validateHash(data): if self._utils.validateHash(data):
if not os.path.exists('data/blocks/' + data + '.db'): if not os.path.exists('data/blocks/' + data + '.db'):
block = Block(data.encode(), core=self._core) block = Block(data.encode(), core=self._core)
resp = base64.b64encode(block.getRaw()).decode() resp = base64.b64encode(block.getRaw().encode()).decode()
if len(resp) == 0: if len(resp) == 0:
abort(404) abort(404)