fix generating hashes not being removed when done, add endpoint to get generating hashes

This commit is contained in:
Kevin Froman 2020-08-09 22:13:06 -05:00
parent a01b645a79
commit feb8004c95
4 changed files with 39 additions and 15 deletions

View file

@ -262,7 +262,8 @@ def insert_block(data: Union[str, bytes], header: str = 'txt',
localcommand.local_command,
'/daemon-event/remove_from_insert_queue_wrapper',
post=True,
post_data={'block_hash': retData},
post_data={'block_hash':
bytesconverter.bytes_to_str(crypto.hashers.sha3_hash(data))},
is_json=True
).get(timeout=5)
return retData