Skip to content

Code cleaning spree #34

@QGarchery

Description

@QGarchery

Steps to improve code readability / code style:

  • walk through the code and add comments / improve naming
  • use a general class for the state (call it Blockchain), and store all global variables in it
  • use a function to check if a transaction is a reward transaction
  • use str instead of repr everywhere, define one way to get the address from a pub key
  • logging vs printing in tests
  • anchor_prev should be anchor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions