comparison src/puppy/block_structure.py @ 9:e218f70e19e9

refactor code
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Sun, 24 Oct 2021 21:00:49 +0200
parents 4d259e84160d
children
comparison
equal deleted inserted replaced
8:4d259e84160d 9:e218f70e19e9
1 class Block: 1 class Block:
2 block_hash = str() 2 id = str()
3 magic_number = str() 3 magic_number = str()
4 block_size = str() 4 size = str()
5 number_of_transactions = str() 5 transaction_count = str()
6 6
7 7
8 class Header: 8 class Header:
9 version = str() 9 version = str()
10 previous_block_hash = str() 10 previous_block_id = str()
11 merkle_root = str() 11 merkle_root = str()
12 time = str() 12 time = str()
13 bits = str() 13 bits = str()
14 nonce = str() 14 nonce = str()
15 15
16 16
17 class Transaction: 17 class Transaction:
18 id = str() 18 id = str()
19 version = str() 19 version = str()
20 number_of_inputs = str() 20 input_count = str()
21 number_of_outputs = str() 21 output_count = str()
22 lock_time = str() 22 lock_time = str()
23 23
24 24
25 class TransactionInput: 25 class TransactionInput:
26 id = str() 26 id = str()