Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions slot_change_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,10 @@ def main():
chain_id = w3.eth.chain_id
tip = w3.eth.block_number
print(f"🌐 Connected (chainId {chain_id}, tip {tip})")
if hi > tip: print(f"⚠️ end_block {hi} > tip {tip}; clamping."); hi = tip

if hi > tip:
print(f"⚠️ Upper bound {hi} exceeds tip {tip}; clamping to tip.")
print(f"⚠️ end_block {hi} > tip {tip}; clamping to tip {tip}.", file=sys.stderr)
hi = tip

if lo < 0:
print("❌ start_block must be ≥ 0."); sys.exit(2)

Expand Down