Skip to content

Instantly share code, notes, and snippets.

@humbdrag
Created January 27, 2022 21:08
Show Gist options
  • Save humbdrag/89191627a671699162279662769bb44a to your computer and use it in GitHub Desktop.
Save humbdrag/89191627a671699162279662769bb44a to your computer and use it in GitHub Desktop.
Create submission string
def create_submission_str(block: Dict) -> str:
submission = (
calc_block_header(block).hex()
+ get_le_var_hex(len(block['transactions']))
)
for tx in block['transactions']:
submission += tx['data']
return submission
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment