Skip to content

Commit

Permalink
Add prepare call to HTTP api
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Feb 27, 2022
1 parent bd398df commit 1ef1b14
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions beacon_node/http_api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2229,6 +2229,21 @@ pub fn serve<T: BeaconChainTypes>(
)
})?;

execution_layer
.block_on_generic(|_| chain.prepare_beacon_proposer())
.map_err(|e| {
warp_utils::reject::custom_bad_request(format!(
"error spawning update: {:?}",
e
))
})?
.map_err(|e| {
warp_utils::reject::custom_bad_request(format!(
"error updating proposer preparations: {:?}",
e
))
})?;

Ok(())
})
},
Expand Down

0 comments on commit 1ef1b14

Please sign in to comment.