Skip to content

Chapter 7: no mining happening?  #13

@tindandelion

Description

@tindandelion

Going through the chapter 7's code in order to understand how the whole app works, I've been surprised to find out that no mining is actually happening anywhere in the code. There's a method Blockchain.mine_new_block() but it doesn't seem to be called from anywhere.

The node can:

  • Receive a block from another node;
  • Receive a transaction and add it to pending transactions list.

But nowhere in the code do we create a new block, apart from the genesis. That's confusing.

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