Skip to content

Commit

Permalink
Fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
citizen-stig committed Dec 13, 2023
1 parent 76e14ac commit 2d3237b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion adapters/mock-da/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const GENESIS_HEADER: MockBlockHeader = MockBlockHeader {
prev_hash: MockHash([0; 32]),
hash: MockHash([1; 32]),
height: 0,
// 2023-01-01T00:00:00Z
time: Time::from_secs(1672531200),
};

#[derive(Clone)]
Expand Down Expand Up @@ -246,7 +248,7 @@ impl DaService for MockDaService {
// Enough blocks to finalize earliest
if blocks.len() > self.blocks_to_finality as usize {
let next_index_to_finalize = blocks.len() - self.blocks_to_finality as usize - 1;
let next_finalized_header = *blocks[next_index_to_finalize].header();
let next_finalized_header = blocks[next_index_to_finalize].header().clone();
self.last_finalized_height
.store(next_finalized_header.height(), Ordering::Release);
self.finalized_header_sender
Expand Down
1 change: 1 addition & 0 deletions adapters/mock-da/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ impl MockBlockHeader {
prev_hash: MockHash(prev_hash),
hash: MockHash(hash),
height,
time: Time::now(),
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions examples/demo-rollup/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use const_rollup_config::{ROLLUP_BATCH_NAMESPACE_RAW, ROLLUP_PROOF_NAMESPACE_RAW
use sov_celestia_adapter::types::Namespace;
mod mock_rollup;
pub use mock_rollup::*;
use sov_celestia_adapter::types::Namespace;
use tracing_subscriber::layer::SubscriberExt;
use tracing_subscriber::util::SubscriberInitExt;
use tracing_subscriber::{fmt, EnvFilter};
Expand All @@ -17,7 +16,6 @@ mod celestia_rollup;
pub use celestia_rollup::*;
#[cfg(feature = "experimental")]
mod eth;
mod mock_rollup;

/// The rollup stores its data in the namespace b"sov-test" on Celestia
/// You can change this constant to point your rollup at a different namespace
Expand Down
1 change: 1 addition & 0 deletions full-node/sov-prover-storage-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,7 @@ mod tests {
prev_hash: MockHash::from([5; 32]),
hash: MockHash::from([6; 32]),
height: 6,
time: Time::now(),
};
let storage_last = storage_manager
.create_storage_on(&new_block_after_e)
Expand Down

0 comments on commit 2d3237b

Please sign in to comment.