Skip to content

Very Enlightening but could not get it going.. #3

@ipapop

Description

@ipapop

Hello,

I read the extremely interesting part 1 on
https://www.pyscoop.com/building-a-simple-blockchain-in-python/

I tried to get a bit of hands on by running the given example..
An error was generated Which I think is related to the absence of the genesis block.
However I could not get to generate this 'genesis block'.
So not an issue just my dumb self. But nevertheless a feedback.
Again thank you very much for all these great explanations.
Olivier

Before Mining...
[]
Traceback (most recent call last):
File "C:\Users***********\Desktop\temp.py", line 94, in
last_block = blockchain.get_last_block
File "C:\Users***************\Desktop\temp.py", line 42, in get_last_block
return self.chain[-1]
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions