Skip to content

Commit 7e008cb

Browse files
committed
Add prepare call to HTTP api
1 parent 44d090e commit 7e008cb

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

  • beacon_node/http_api/src

beacon_node/http_api/src/lib.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,6 +2229,21 @@ pub fn serve<T: BeaconChainTypes>(
22292229
)
22302230
})?;
22312231

2232+
execution_layer
2233+
.block_on_generic(|_| chain.prepare_beacon_proposer())
2234+
.map_err(|e| {
2235+
warp_utils::reject::custom_bad_request(format!(
2236+
"error spawning update: {:?}",
2237+
e
2238+
))
2239+
})?
2240+
.map_err(|e| {
2241+
warp_utils::reject::custom_bad_request(format!(
2242+
"error updating proposer preparations: {:?}",
2243+
e
2244+
))
2245+
})?;
2246+
22322247
Ok(())
22332248
})
22342249
},

0 commit comments

Comments
 (0)