Implement publish block and blobs endpoint (WIP)

This commit is contained in:
Jimmy Chen
2023-03-14 17:03:45 +11:00
parent 9ba390f7c5
commit a8978a5f69
8 changed files with 79 additions and 39 deletions

View File

@@ -612,7 +612,7 @@ impl BeaconNodeHttpClient {
/// Returns `Ok(None)` on a 404 error.
pub async fn post_beacon_blocks<T: EthSpec, Payload: AbstractExecPayload<T>>(
&self,
block: &SignedBeaconBlock<T, Payload>,
block_contents: &SignedBlockContents<T, Payload>,
) -> Result<(), Error> {
let mut path = self.eth_path(V1)?;
@@ -621,7 +621,7 @@ impl BeaconNodeHttpClient {
.push("beacon")
.push("blocks");
self.post_with_timeout(path, block, self.timeouts.proposal)
self.post_with_timeout(path, block_contents, self.timeouts.proposal)
.await?;
Ok(())