File tree Expand file tree Collapse file tree 17 files changed +17
-18
lines changed Expand file tree Collapse file tree 17 files changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
126
126
if len (recent_blocks ) == 0 :
127
127
return []
128
128
129
- recent_block_hashes = []
129
+ recent_block_hashes : List [ Hash32 ] = []
130
130
131
131
for block in recent_blocks :
132
132
prev_block_hash = block .header .parent_hash
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
122
122
if len (recent_blocks ) == 0 :
123
123
return []
124
124
125
- recent_block_hashes = []
125
+ recent_block_hashes : List [ Hash32 ] = []
126
126
127
127
for block in recent_blocks :
128
128
prev_block_hash = block .header .parent_hash
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
117
117
if len (recent_blocks ) == 0 :
118
118
return []
119
119
120
- recent_block_hashes = []
120
+ recent_block_hashes : List [ Hash32 ] = []
121
121
122
122
for block in recent_blocks :
123
123
prev_block_hash = block .header .parent_hash
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
138
138
if len (recent_blocks ) == 0 :
139
139
return []
140
140
141
- recent_block_hashes = []
141
+ recent_block_hashes : List [ Hash32 ] = []
142
142
143
143
for block in recent_blocks :
144
144
prev_block_hash = block .header .parent_hash
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
117
117
if len (recent_blocks ) == 0 :
118
118
return []
119
119
120
- recent_block_hashes = []
120
+ recent_block_hashes : List [ Hash32 ] = []
121
121
122
122
for block in recent_blocks :
123
123
prev_block_hash = block .header .parent_hash
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
121
121
if len (recent_blocks ) == 0 :
122
122
return []
123
123
124
- recent_block_hashes = []
124
+ recent_block_hashes : List [ Hash32 ] = []
125
125
126
126
for block in recent_blocks :
127
127
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 @@ -126,7 +126,7 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
126
126
if len (recent_blocks ) == 0 :
127
127
return []
128
128
129
- recent_block_hashes = []
129
+ recent_block_hashes : List [ Hash32 ] = []
130
130
131
131
for block in recent_blocks :
132
132
prev_block_hash = block .header .parent_hash
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
111
111
if len (recent_blocks ) == 0 :
112
112
return []
113
113
114
- recent_block_hashes = []
114
+ recent_block_hashes : List [ Hash32 ] = []
115
115
116
116
for block in recent_blocks :
117
117
prev_block_hash = block .header .parent_hash
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ def get_last_256_block_hashes(chain: BlockChain) -> List[Hash32]:
117
117
if len (recent_blocks ) == 0 :
118
118
return []
119
119
120
- recent_block_hashes = []
120
+ recent_block_hashes : List [ Hash32 ] = []
121
121
122
122
for block in recent_blocks :
123
123
prev_block_hash = block .header .parent_hash
You can’t perform that action at this time.
0 commit comments