File tree Expand file tree Collapse file tree 17 files changed +17
-34
lines changed Expand file tree Collapse file tree 17 files changed +17
-34
lines changed Original file line number Diff line number Diff line change @@ -122,11 +122,10 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
122
122
Hashes of the recent 256 blocks in order of increasing block number.
123
123
"""
124
124
recent_blocks = chain .blocks [- 255 :]
125
- # TODO: This function has not been tested rigorously
126
125
if len (recent_blocks ) == 0 :
127
126
return []
128
127
129
- recent_block_hashes = []
128
+ recent_block_hashes : List [ Hash32 ] = []
130
129
131
130
for block in recent_blocks :
132
131
prev_block_hash = block .header .parent_hash
Original file line number Diff line number Diff line change @@ -118,11 +118,10 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
118
118
Hashes of the recent 256 blocks in order of increasing block number.
119
119
"""
120
120
recent_blocks = chain .blocks [- 255 :]
121
- # TODO: This function has not been tested rigorously
122
121
if len (recent_blocks ) == 0 :
123
122
return []
124
123
125
- recent_block_hashes = []
124
+ recent_block_hashes : List [ Hash32 ] = []
126
125
127
126
for block in recent_blocks :
128
127
prev_block_hash = block .header .parent_hash
Original file line number Diff line number Diff line change @@ -113,11 +113,10 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
113
113
Hashes of the recent 256 blocks in order of increasing block number.
114
114
"""
115
115
recent_blocks = chain .blocks [- 255 :]
116
- # TODO: This function has not been tested rigorously
117
116
if len (recent_blocks ) == 0 :
118
117
return []
119
118
120
- recent_block_hashes = []
119
+ recent_block_hashes : List [ Hash32 ] = []
121
120
122
121
for block in recent_blocks :
123
122
prev_block_hash = block .header .parent_hash
Original file line number Diff line number Diff line change @@ -134,11 +134,10 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
134
134
Hashes of the recent 256 blocks in order of increasing block number.
135
135
"""
136
136
recent_blocks = chain .blocks [- 255 :]
137
- # TODO: This function has not been tested rigorously
138
137
if len (recent_blocks ) == 0 :
139
138
return []
140
139
141
- recent_block_hashes = []
140
+ recent_block_hashes : List [ Hash32 ] = []
142
141
143
142
for block in recent_blocks :
144
143
prev_block_hash = block .header .parent_hash
Original file line number Diff line number Diff line change @@ -113,11 +113,10 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
113
113
Hashes of the recent 256 blocks in order of increasing block number.
114
114
"""
115
115
recent_blocks = chain .blocks [- 255 :]
116
- # TODO: This function has not been tested rigorously
117
116
if len (recent_blocks ) == 0 :
118
117
return []
119
118
120
- recent_block_hashes = []
119
+ recent_block_hashes : List [ Hash32 ] = []
121
120
122
121
for block in recent_blocks :
123
122
prev_block_hash = block .header .parent_hash
Original file line number Diff line number Diff line change @@ -117,11 +117,10 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
117
117
Hashes of the recent 256 blocks in order of increasing block number.
118
118
"""
119
119
recent_blocks = chain .blocks [- 255 :]
120
- # TODO: This function has not been tested rigorously
121
120
if len (recent_blocks ) == 0 :
122
121
return []
123
122
124
- recent_block_hashes = []
123
+ recent_block_hashes : List [ Hash32 ] = []
125
124
126
125
for block in recent_blocks :
127
126
prev_block_hash = block .header .parent_hash
Original file line number Diff line number Diff line change @@ -107,11 +107,10 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
107
107
Hashes of the recent 256 blocks in order of increasing block number.
108
108
"""
109
109
recent_blocks = chain .blocks [- 255 :]
110
- # TODO: This function has not been tested rigorously
111
110
if len (recent_blocks ) == 0 :
112
111
return []
113
112
114
- recent_block_hashes = []
113
+ recent_block_hashes : List [ Hash32 ] = []
115
114
116
115
for block in recent_blocks :
117
116
prev_block_hash = block .header .parent_hash
Original file line number Diff line number Diff line change @@ -122,11 +122,10 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
122
122
Hashes of the recent 256 blocks in order of increasing block number.
123
123
"""
124
124
recent_blocks = chain .blocks [- 255 :]
125
- # TODO: This function has not been tested rigorously
126
125
if len (recent_blocks ) == 0 :
127
126
return []
128
127
129
- recent_block_hashes = []
128
+ recent_block_hashes : List [ Hash32 ] = []
130
129
131
130
for block in recent_blocks :
132
131
prev_block_hash = block .header .parent_hash
Original file line number Diff line number Diff line change @@ -107,11 +107,10 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
107
107
Hashes of the recent 256 blocks in order of increasing block number.
108
108
"""
109
109
recent_blocks = chain .blocks [- 255 :]
110
- # TODO: This function has not been tested rigorously
111
110
if len (recent_blocks ) == 0 :
112
111
return []
113
112
114
- recent_block_hashes = []
113
+ recent_block_hashes : List [ Hash32 ] = []
115
114
116
115
for block in recent_blocks :
117
116
prev_block_hash = block .header .parent_hash
Original file line number Diff line number Diff line change @@ -113,11 +113,10 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
113
113
Hashes of the recent 256 blocks in order of increasing block number.
114
114
"""
115
115
recent_blocks = chain .blocks [- 255 :]
116
- # TODO: This function has not been tested rigorously
117
116
if len (recent_blocks ) == 0 :
118
117
return []
119
118
120
- recent_block_hashes = []
119
+ recent_block_hashes : List [ Hash32 ] = []
121
120
122
121
for block in recent_blocks :
123
122
prev_block_hash = block .header .parent_hash
You can’t perform that action at this time.
0 commit comments