Skip to content

Commit 82a9de1

Browse files
authored
Add titan relay to the relay list (#679)
## 📝 Summary Add Titan Relay to the relay list ## 💡 Motivation and Context I added the Titan Relay to the current relay list because it was not included. Although the request to the Eden relay is redirected to Titan, I found that they are not exactly the same in some cases. For example, I received an empty response from https://relay.edennetwork.io/relay/v1/data/bidtraces/proposer_payload_delivered?slot=12359595 but a valid response from https://titanrelay.xyz/relay/v1/data/bidtraces/proposer_payload_delivered?slot=12359595. --- ## ✅ I have completed the following steps: * [x] Run `make lint` * [x] Run `make test` * [ ] Added tests (if applicable)
1 parent 2698d79 commit 82a9de1

File tree

1 file changed

+6
-1
lines changed
  • crates/rbuilder-primitives/src/mev_boost

1 file changed

+6
-1
lines changed

crates/rbuilder-primitives/src/mev_boost/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ pub enum KnownRelay {
7373
Agnostic,
7474
Aestus,
7575
Wenmerge,
76+
Titan,
7677
}
7778

78-
pub const RELAYS: [KnownRelay; 9] = [
79+
pub const RELAYS: [KnownRelay; 10] = [
7980
KnownRelay::Flashbots,
8081
KnownRelay::BloxrouteMaxProfit,
8182
KnownRelay::BloxrouteRegulated,
@@ -85,6 +86,7 @@ pub const RELAYS: [KnownRelay; 9] = [
8586
KnownRelay::Agnostic,
8687
KnownRelay::Aestus,
8788
KnownRelay::Wenmerge,
89+
KnownRelay::Titan,
8890
];
8991

9092
impl KnownRelay {
@@ -100,6 +102,7 @@ impl KnownRelay {
100102
KnownRelay::Agnostic => "https://0xa7ab7a996c8584251c8f925da3170bdfd6ebc75d50f5ddc4050a6fdc77f2a3b5fce2cc750d0865e05d7228af97d69561@agnostic-relay.net",
101103
KnownRelay::Aestus => "https://0xa15b52576bcbf1072f4a011c0f99f9fb6c66f3e1ff321f11f461d15e31b1cb359caa092c71bbded0bae5b5ea401aab7e@aestus.live",
102104
KnownRelay::Wenmerge => "https://0x8c7d33605ecef85403f8b7289c8058f440cbb6bf72b055dfe2f3e2c6695b6a1ea5a9cd0eb3a7982927a463feb4c3dae2@relay.wenmerge.com",
105+
KnownRelay::Titan => "https://0x8c4ed5e24fe5c6ae21018437bde147693f68cda427cd1122cf20819c30eda7ed74f72dece09bb313f2a1855595ab677d@titanrelay.xyz",
103106
}).unwrap()
104107
}
105108

@@ -115,6 +118,7 @@ impl KnownRelay {
115118
KnownRelay::Agnostic => "agnostic",
116119
KnownRelay::Aestus => "aestus",
117120
KnownRelay::Wenmerge => "wenmerge",
121+
KnownRelay::Titan => "titan",
118122
}
119123
.to_string()
120124
}
@@ -142,6 +146,7 @@ impl std::str::FromStr for KnownRelay {
142146
"agnostic" => Ok(KnownRelay::Agnostic),
143147
"aestus" => Ok(KnownRelay::Aestus),
144148
"wenmerge" => Ok(KnownRelay::Wenmerge),
149+
"titan" => Ok(KnownRelay::Titan),
145150
_ => Err(()),
146151
}
147152
}

0 commit comments

Comments
 (0)