Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDB是干嘛的? #2

Open
kenneth opened this issue Feb 4, 2019 · 2 comments
Open

PDB是干嘛的? #2

kenneth opened this issue Feb 4, 2019 · 2 comments

Comments

@kenneth
Copy link

kenneth commented Feb 4, 2019

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
@yummybian
Copy link
Collaborator

那是用来产生Debug断点的,删除那两行就行了。

@kenneth
Copy link
Author

kenneth commented Feb 6, 2019

删除了,还是有点报错。

Repository owner deleted a comment from H4wk-eye Feb 21, 2024
Repository owner deleted a comment from Brigita41 Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@kenneth @yummybian and others