|
1 | 1 | use crate::{
|
2 | 2 | cfg::CelestiaConfig,
|
3 |
| - consts::CHANNEL_BUFFER_SIZE, |
4 | 3 | da::{DataAvailabilityLayer, FinalizedEpoch},
|
5 | 4 | };
|
6 |
| -use anyhow::{anyhow, bail, Context, Result}; |
| 5 | +use anyhow::{anyhow, Context, Result}; |
7 | 6 | use async_trait::async_trait;
|
8 | 7 | use celestia_rpc::{BlobClient, Client, HeaderClient};
|
9 | 8 | use celestia_types::{blob::GasPrice, nmt::Namespace, Blob};
|
@@ -99,7 +98,7 @@ impl DataAvailabilityLayer for CelestiaConnection {
|
99 | 98 | Ok(height)
|
100 | 99 | }
|
101 | 100 |
|
102 |
| - async fn get_snark(&self, height: u64) -> Result<Option<FinalizedEpoch>> { |
| 101 | + async fn get_finalized_epoch(&self, height: u64) -> Result<Option<FinalizedEpoch>> { |
103 | 102 | trace!("searching for epoch on da layer at height {}", height);
|
104 | 103 |
|
105 | 104 | match BlobClient::blob_get_all(&self.client, height, &[self.snark_namespace]).await {
|
@@ -128,7 +127,7 @@ impl DataAvailabilityLayer for CelestiaConnection {
|
128 | 127 | }
|
129 | 128 | }
|
130 | 129 |
|
131 |
| - async fn submit_snark(&self, epoch: FinalizedEpoch) -> Result<u64> { |
| 130 | + async fn submit_finalized_epoch(&self, epoch: FinalizedEpoch) -> Result<u64> { |
132 | 131 | debug!("posting {}th epoch to da layer", epoch.height);
|
133 | 132 |
|
134 | 133 | let data = bincode::serialize(&epoch).map_err(|e| {
|
|
0 commit comments