Skip to content

Commit 97ff288

Browse files
committed
Merge branch 'main' into feat/block-selection-policy
2 parents 1f38ca4 + 4c39b0f commit 97ff288

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/server.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ impl RollupBoostServer {
183183
self.probes.set_health(Health::Healthy);
184184

185185
if let Ok(Some(builder_payload)) = builder_payload {
186+
// If execution mode is set to DryRun, fallback to the l2_payload,
187+
// otherwise prefer the builder payload
186188
if self.execution_mode().is_dry_run() {
187189
(l2_payload, PayloadSource::L2)
188190
} else if let Some(selection_policy) = &self.block_selection_policy {
@@ -191,7 +193,11 @@ impl RollupBoostServer {
191193
(builder_payload, PayloadSource::Builder)
192194
}
193195
} else {
194-
self.probes.set_health(Health::PartialContent);
196+
// Only update the health status if the builder payload fails
197+
// and execution mode is not set to DryRun
198+
if !self.execution_mode().is_dry_run() {
199+
self.probes.set_health(Health::PartialContent);
200+
}
195201
(l2_payload, PayloadSource::L2)
196202
}
197203
};

0 commit comments

Comments
 (0)