Skip to content

Commit

Permalink
Add release note, address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
kclowes committed Nov 8, 2019
1 parent e28e746 commit c268b87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/1255.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Make local block filter return empty list when when no blocks mined
2 changes: 1 addition & 1 deletion web3/middleware/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def get_filter_changes(self):
def block_hashes_in_range(w3, block_range):
from_block, to_block = block_range
if from_block is None or to_block is None:
return None
return
for block_number in range(from_block, to_block + 1):
yield getattr(w3.eth.getBlock(block_number), 'hash', None)

Expand Down

0 comments on commit c268b87

Please sign in to comment.