Skip to content

Commit

Permalink
set timestamp to null if it was set to 0 (#14)
Browse files Browse the repository at this point in the history
## πŸ“ Summary

<!--- A general summary of your changes -->

## β›± Motivation and Context

<!--- Why is this change required? What problem does it solve? -->

## πŸ“š References

<!-- Any interesting external links to documentation, articles, tweets
which add value to the PR -->

---

## βœ… I have run these commands

* [ ] `make lint`
* [ ] `make test`
* [ ] `go mod tidy`
  • Loading branch information
dvush authored Feb 20, 2025
1 parent 6f19308 commit 8eb6755
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions proxy/sender_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ func (prx *SenderProxy) EthSendBundle(ctx context.Context, ethSendBundle rpctype
return err
}

// quick workaround for people setting timestamp to 0
if ethSendBundle.MaxTimestamp != nil && *ethSendBundle.MaxTimestamp == 0 {
ethSendBundle.MaxTimestamp = nil
}
if ethSendBundle.MinTimestamp != nil && *ethSendBundle.MinTimestamp == 0 {
ethSendBundle.MinTimestamp = nil
}

return prx.HandleParsedRequest(ctx, parsedRequest)
}

Expand Down

0 comments on commit 8eb6755

Please sign in to comment.