fix generating hashes not being removed when done, add endpoint to get generating hashes
This commit is contained in:
parent
a01b645a79
commit
feb8004c95
4 changed files with 39 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue