comparison src/puppy/block_structure.py @ 8:4d259e84160d

fix OverFlow bug
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Sun, 24 Oct 2021 17:38:23 +0200
parents
children e218f70e19e9
comparison
equal deleted inserted replaced
7:e4afde8d5a7e 8:4d259e84160d
1 class Block:
2 block_hash = str()
3 magic_number = str()
4 block_size = str()
5 number_of_transactions = str()
6
7
8 class Header:
9 version = str()
10 previous_block_hash = str()
11 merkle_root = str()
12 time = str()
13 bits = str()
14 nonce = str()
15
16
17 class Transaction:
18 id = str()
19 version = str()
20 number_of_inputs = str()
21 number_of_outputs = str()
22 lock_time = str()
23
24
25 class TransactionInput:
26 id = str()
27 vout = str()
28 script_sig_size = str()
29 script_sig = str()
30 sequence = str()
31
32
33 class TransactionOutput:
34 value = str()
35 script_pub_key_size = str()
36 script_pub_key = str()