Mercurial > public > bitcaviar-plus
diff main.py @ 9:e218f70e19e9
refactor code
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sun, 24 Oct 2021 21:00:49 +0200 |
parents | 4d259e84160d |
children |
line wrap: on
line diff
--- a/main.py Sun Oct 24 17:38:23 2021 +0200 +++ b/main.py Sun Oct 24 21:00:49 2021 +0200 @@ -8,8 +8,14 @@ print('File size in bytes: {}'. format(file_size)) with open(filename, 'rb') as f: + + counter = 0 while f.tell() < file_size: + counter += 1 block = deserialize_block(f) + if counter == 3456: + print(block) + exit() if __name__ == '__main__':