Thanks to visit codestin.com
Credit goes to github.com

Skip to content

blockchain.get_ordered_blocks() does not iterate all blocks #109

@ManuelSchneid3r

Description

@ManuelSchneid3r

When I iterate the blockchain the loop over the blocks above finishes at block 478560/774513. I have no clue why

for block in blockchain.get_ordered_blocks(index=index, cache=cache_file):
    print("\rblk %d/%d" % (block.height, len(blockchain.blockIndexes)), end='')
print("\nBye")

ends with exit_success (0)

0 ms blk 478560/774513
Bye

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