Skip to content

Conversation

@ZanCorDX
Copy link
Collaborator

@ZanCorDX ZanCorDX commented Dec 7, 2024

📝 Summary

This version considers the error from the relay "block rejected because of OFAC addresses" as non critical.

💡 Motivation and Context

Without this change, non OFAC compliant builders would stop building blocks after sending a non-OFAC block to a OFAC complaint relay (flashbot's!).

✅ I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

@github-actions
Copy link

github-actions bot commented Dec 7, 2024

Benchmark results for 9975332

Report: https://flashbots-rbuilder-ci-stats.s3.us-east-2.amazonaws.com/benchmark/9975332-e13d221/report/index.html

Date (UTC) 2024-12-07T20:23:59+00:00
Commit 9975332606c094b9d006e604be542b40db9ae5ab
Base SHA e13d221d6433b63e477a7513f1c41c71c0ff1459

Significant changes

None

const SIM_FAILED_SUBSTRING: &str = "simulation failed";
/// Any error containing SIM_FAILED_SUBSTRING and any of SIM_FAILED_NON_CRITICAL_ERRORS is not critical so we should not stop block building.
const SIM_FAILED_NON_CRITICAL_ERRORS: &[&str] = &[
"blacklisted address", // Generated block is good but contains a blacklisted address. This happens if we don't use an OFAC blacklist but the relay does.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit:

Use kinder language.

Suggested change
"blacklisted address", // Generated block is good but contains a blacklisted address. This happens if we don't use an OFAC blacklist but the relay does.
"blocklisted address", // Generated block is good but contains a blocklisted address. This happens if we don't use an OFAC blocklist but the relay does.

@ZanCorDX ZanCorDX merged commit 35b98fa into develop Dec 8, 2024
6 checks passed
@ZanCorDX ZanCorDX deleted the ofac-non-critical-error-fix-ver2 branch December 8, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants