Skip to content

error: python cli.py createblockchain  #3

@zhang123-sys

Description

@zhang123-sys

python cli.py createblockchain --address 1NYTHzofehALBDPJvzVhhRJiGEd68Rv7ok
Mining a new block
00169e5239bc2ff12dd48f9a980a3c862fbd2e53743bc498baa5b68e8d1c84fe

Traceback (most recent call last):
File "D:\论文\区块链\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 119, in
create_blockchain(args.blockchain_address)
File "cli.py", line 69, in create_blockchain
utxo_set.reindex()
File "D:\论文\区块链\blockchain-py\blockchain-py\utxo_set.py", line 25, in reindex
utxos = self._bc.find_utxo()
File "D:\论文\区块链\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