Skip to content

Commit

Permalink
Merge branch 'eigen-client-extra-features' into eigen-client-m0-imple…
Browse files Browse the repository at this point in the history
…mentation-merge-extra-features
  • Loading branch information
juan518munoz committed Dec 13, 2024
2 parents 452fc6c + 4b3c059 commit c4b5b0b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 1 addition & 4 deletions core/lib/protobuf_config/src/da_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ impl ProtoRepr for proto::DataAvailabilityClient {
&conf.settlement_layer_confirmation_depth,
)
.context("settlement_layer_confirmation_depth")?,
eigenda_eth_rpc: match required(&conf.eigenda_eth_rpc) {
Ok(rpc) => Some(rpc.clone()),
Err(_) => None,
},
eigenda_eth_rpc: required(&conf.eigenda_eth_rpc).ok().cloned(),
eigenda_svc_manager_address: required(&conf.eigenda_svc_manager_address)
.context("eigenda_svc_manager_address")?
.clone(),
Expand Down
10 changes: 8 additions & 2 deletions core/node/da_clients/src/eigen/sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ impl<T: GetBlobData> RawEigenClient<T> {
| disperser::BlobStatus::InsufficientSignatures
| disperser::BlobStatus::Unknown => Err(anyhow::anyhow!("Blob dispatch failed")),

_ => Ok(hex::encode(disperse_reply.request_id)),
disperser::BlobStatus::Dispersing
| disperser::BlobStatus::Processing
| disperser::BlobStatus::Finalized
| disperser::BlobStatus::Confirmed => Ok(hex::encode(disperse_reply.request_id)),
}
}

Expand Down Expand Up @@ -163,7 +166,10 @@ impl<T: GetBlobData> RawEigenClient<T> {
| disperser::BlobStatus::InsufficientSignatures
| disperser::BlobStatus::Unknown => Err(anyhow::anyhow!("Blob dispatch failed")),

_ => Ok(hex::encode(disperse_reply.request_id)),
disperser::BlobStatus::Dispersing
| disperser::BlobStatus::Processing
| disperser::BlobStatus::Finalized
| disperser::BlobStatus::Confirmed => Ok(hex::encode(disperse_reply.request_id)),
}
}

Expand Down

0 comments on commit c4b5b0b

Please sign in to comment.