Skip to content

Commit

Permalink
fix: re run custom flood whenever it crashes (#264)
Browse files Browse the repository at this point in the history
Closes #245
  • Loading branch information
h4ck3rk3y authored Oct 6, 2023
1 parent d29f98e commit fab3995
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/mev_custom_flood/sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ def flood():
assert tx["from"] == sender_account.address


def run_infinitely():
while True:
try:
flood()
except Exception as e:
print("e")
print("restarting flood as previous one failed")


if __name__ == "__main__":
flood()
run_infinitely()

0 comments on commit fab3995

Please sign in to comment.