Mercurial > public > bitcaviar-plus
diff main.py @ 7:e4afde8d5a7e
restart project
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sun, 24 Oct 2021 15:19:56 +0200 |
parents | 5f6d1a28051a |
children | 4d259e84160d |
line wrap: on
line diff
--- a/main.py Sun Oct 24 15:18:54 2021 +0200 +++ b/main.py Sun Oct 24 15:19:56 2021 +0200 @@ -1,15 +1,8 @@ -import os -from src.puppy.block import read_block - - def main(): file_path = '/Users/dennis/Bitcoin/blocks/blk00000.dat' with open(file_path, 'rb') as f: - number_of_bytes_in_file = os.path.getsize(file_path) - - while f.tell() < number_of_bytes_in_file: - block = read_block(f) + pass if __name__ == '__main__':