diff --git a/examples/load_local_blockchain.py b/examples/load_local_blockchain.py index 0dc9e9ff5693599fd852ed745f3d595a260bd955..b5d727c4a9be99621cd5e5dd322331f3b0ef30a5 100644 --- a/examples/load_local_blockchain.py +++ b/examples/load_local_blockchain.py @@ -23,7 +23,8 @@ from duniterpy.helpers.blockchain import load bc = load() # gets blockchain iterator b = next(bc) # gets block -b.number # should return 0 +print(f"first block number is: {b.number}") # should return 0 # you can access all properties of this block through it's duniterpy objects attributes -next(bc).number # should return 1 -next(bc).number # should return 2 (and so on) +print(f"second block number is: {next(bc).number}") # should return 1 +print(f"third block number is: {next(bc).number}") # should return 2 +# (and so on)