work on new block system

master
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
1 changed files with 1 additions and 1 deletions

View File

@ -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)