Skip to content
This repository was archived by the owner on Jun 20, 2019. It is now read-only.
This repository was archived by the owner on Jun 20, 2019. It is now read-only.

JSON error when mining unverified transactions inside of block #13

@dlowrey

Description

@dlowrey

To reproduce:

  • delete data directory
  • run main.py
  • type send test 100
  • type start

The mining crashes when trying to gather the unverified transactions for the new block because the file verified_transactions.json was created with {}, the same for utxo.json. This causes json.load() to crash with json.decoder.JSONDecodeError: Extra data: line 1 column 3 (char 2) (because of the extra {})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions