Skip to content

Commit 07e027b

Browse files
committed
Merge branch 'main' of github.com:chainwayxyz/citrea-e2e into da-monitoring
2 parents cde9d34 + 1193cbc commit 07e027b

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

.github/workflows/code_checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
runs-on: ubuntu-latest
5353
strategy:
5454
matrix:
55-
short_prefix: [0, 1]
55+
ci_test_mode: [0, 1]
5656

5757
steps:
5858
- uses: actions/checkout@v4
@@ -64,4 +64,4 @@ jobs:
6464
toolchain: stable
6565

6666
- name: Run Cargo test
67-
run: SHORT_PREFIX=${{ matrix.short_prefix }} cargo test
67+
run: CI_TEST_MODE=${{ matrix.ci_test_mode }} cargo test

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ tracing = { version = "0.1.40", default-features = false }
2323
tracing-subscriber = { version = "0.3.17", features = ["env-filter", "json", "fmt"] }
2424

2525
# Citrea dependencies
26-
sov-ledger-rpc = { git = "https://github.com/chainwayxyz/citrea", rev = "82bf52d", default-features = false, features = ["client"] }
27-
sov-rollup-interface = { git = "https://github.com/chainwayxyz/citrea", rev = "82bf52d" }
26+
sov-ledger-rpc = { git = "https://github.com/chainwayxyz/citrea", rev = "42693cc", default-features = false, features = ["client"] }
27+
sov-rollup-interface = { git = "https://github.com/chainwayxyz/citrea", rev = "42693cc"}
2828

2929
[patch.crates-io]
3030
bitcoincore-rpc = { version = "0.18.0", git = "https://github.com/chainwayxyz/rust-bitcoincore-rpc.git", rev = "ede8097" }

src/client.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use jsonrpsee::{
88
};
99
use sov_ledger_rpc::client::RpcClient;
1010
use sov_rollup_interface::rpc::{
11-
SequencerCommitmentResponse, SoftConfirmationResponse, VerifiedProofResponse,
11+
SequencerCommitmentResponse, SoftConfirmationResponse, VerifiedBatchProofResponse,
1212
};
1313
use tokio::time::sleep;
1414
use tracing::trace;
@@ -57,13 +57,13 @@ impl Client {
5757
Ok(self.client.get_head_soft_confirmation().await?)
5858
}
5959

60-
pub async fn ledger_get_verified_proofs_by_slot_height(
60+
pub async fn ledger_get_verified_batch_proofs_by_slot_height(
6161
&self,
6262
height: u64,
63-
) -> Result<Option<Vec<VerifiedProofResponse>>> {
63+
) -> Result<Option<Vec<VerifiedBatchProofResponse>>> {
6464
Ok(self
6565
.client
66-
.get_verified_proofs_by_slot_height(height)
66+
.get_verified_batch_proofs_by_slot_height(height)
6767
.await?)
6868
}
6969

src/config/docker.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::{
1212

1313
const DEFAULT_BITCOIN_DOCKER_IMAGE: &str = "bitcoin/bitcoin:28.0";
1414
const DEFAULT_CITREA_DOCKER_IMAGE: &str =
15-
"chainwayxyz/citrea-test:57f9b46a366413f2e5b04a2bca07abcc21ad0dde";
15+
"chainwayxyz/citrea-test:d3a6f5f25175cbfa925ff8fad5069828bd30c06c";
1616

1717
#[derive(Debug)]
1818
pub struct VolumeConfig {
@@ -76,8 +76,8 @@ where
7676
ports: vec![config.rollup.rpc.bind_port],
7777
image: config.docker_image.clone().unwrap_or_else(|| {
7878
let base_img = DEFAULT_CITREA_DOCKER_IMAGE;
79-
match std::env::var("SHORT_PREFIX") {
80-
Ok(v) if v == "1" || v == "true" => format!("{base_img}-short-prefix"),
79+
match std::env::var("CI_TEST_MODE") {
80+
Ok(v) if v == "1" || v == "true" => format!("{base_img}-ci"),
8181
_ => base_img.to_string(),
8282
}
8383
}),

src/full_node.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use anyhow::bail;
2-
use sov_rollup_interface::rpc::{SequencerCommitmentResponse, VerifiedProofResponse};
2+
use sov_rollup_interface::rpc::{SequencerCommitmentResponse, VerifiedBatchProofResponse};
33
use tokio::time::{sleep, Duration, Instant};
44

55
use super::{config::FullFullNodeConfig, Result};
@@ -37,7 +37,7 @@ impl FullNode {
3737
&self,
3838
height: u64,
3939
timeout: Option<Duration>,
40-
) -> Result<Vec<VerifiedProofResponse>> {
40+
) -> Result<Vec<VerifiedBatchProofResponse>> {
4141
let start = Instant::now();
4242
let timeout = timeout.unwrap_or(Duration::from_secs(30));
4343

@@ -48,7 +48,7 @@ impl FullNode {
4848

4949
match self
5050
.client
51-
.ledger_get_verified_proofs_by_slot_height(height)
51+
.ledger_get_verified_batch_proofs_by_slot_height(height)
5252
.await?
5353
{
5454
Some(proofs) => return Ok(proofs),

0 commit comments

Comments
 (0)