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
4 changes: 3 additions & 1 deletion slot_change_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ def stream(args):

# Start from either user-specified block or tip
current = args.start if args.start is not None else w3.eth.block_number
if current < 0: print("❌ start block cannot be negative."); sys.exit(2)
if current < 0:
print("❌ start block cannot be negative.", file=sys.stderr)
sys.exit(2)

while not stop_flag["stop"]:
if not w3.is_connected(): print("🔌 Reconnecting RPC…"); w3 = connect(args.rpc)
Expand Down