Skip to content

PDB是干嘛的? #2

@kenneth

Description

@kenneth
blockchain-py/cli.py(69)create_blockchain()
-> bc = Blockchain(address)
(Pdb)

去掉后RuntimeError: generator raised StopIteration

Traceback (most recent call last):
  File "/Users/Documents/Github/blockchain-py/blockchain-py/blockchain.py", line 119, in blocks
    raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "cli.py", line 121, in <module>
    create_blockchain(args.blockchain_address)
  File "cli.py", line 71, in create_blockchain
    utxo_set.reindex()
  File "/Users/Documents/Github/blockchain-py/blockchain-py/utxo_set.py", line 25, in reindex
    utxos = self._bc.find_utxo()
  File "/Users/Documents/Github/blockchain-py/blockchain-py/blockchain.py", line 92, in find_utxo
    for block in self.blocks:
RuntimeError: generator raised StopIteration

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