blockchain – Wrong hashes for blocks when parsing from blk
[ad_1] Hello I’m using a python script to actually retrieve information from a blk file and to read data. import datetime # Read block ! file = open(“REDACTED\blocks\\blk00000.dat”, ‘rb’) numberOfBlocks = 0 i = 0 toAnalyse = 5000 while i < toAnalyse: block_magic_bytes = file.read(4) if b”==block_magic_bytes : break block_size = file.read(4) block_size_int = int.from_bytes(block_size,’little’) … Read more