Skip to content

Instantly share code, notes, and snippets.

@aunyks
Last active March 8, 2024 18:51
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save aunyks/1ab4f07568b380f8c42636b3ab8d2dcc to your computer and use it in GitHub Desktop.
Save aunyks/1ab4f07568b380f8c42636b3ab8d2dcc to your computer and use it in GitHub Desktop.
import datetime as date
def create_genesis_block():
# Manually construct a block with
# index zero and arbitrary previous hash
return Block(0, date.datetime.now(), "Genesis Block", "0")
@manhhung68
Copy link

like

@Kabayomi
Copy link

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment