ensure public api served blocks are not decrypted

This commit is contained in:
Kevin Froman 2020-03-19 01:40:52 -05:00
parent 62a01b6dba
commit 24284e058f
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ def get_block_data(publicAPI, data):
if stringvalidators.validate_hash(data):
if not config.get('general.hide_created_blocks', True) or data not in publicAPI.hideBlocks:
if data in blockmetadb.get_block_list():
block = apiutils.GetBlockData().get_block_data(data, raw=True)
block = apiutils.GetBlockData().get_block_data(data, raw=True, decrypt=False)
try:
block = block.encode() # Encode in case data is binary
except AttributeError: