mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-07-30 01:23:25 +00:00
BREAKING CHANGE: LEZ crates have been moved from top-level directories into
a dedicated `lez/` subdirectory. The following crates were relocated:
common → lez/common
indexer → lez/indexer
explorer_service→ lez/explorer_service
keycard_wallet → lez/keycard_wallet
mempool → lez/mempool
sequencer → lez/sequencer
storage → lez/storage
testnet_initial_state → lez/testnet_initial_state
wallet → lez/wallet
wallet-ffi → lez/wallet-ffi
Any external tooling, scripts, or paths referencing these crates at their
previous top-level locations must be updated.
37 lines
975 B
Rust
37 lines
975 B
Rust
use std::time::Duration;
|
|
|
|
use anyhow::Result;
|
|
use common::block::Block;
|
|
use logos_blockchain_key_management_system_service::keys::Ed25519Key;
|
|
|
|
use crate::{
|
|
block_publisher::{
|
|
BlockPublisherTrait, CheckpointSink, FinalizedBlockSink, OnDepositEventSink,
|
|
SequencerCheckpoint,
|
|
},
|
|
config::BedrockConfig,
|
|
};
|
|
|
|
pub type SequencerCoreWithMockClients = crate::SequencerCore<MockBlockPublisher>;
|
|
|
|
#[derive(Clone)]
|
|
pub struct MockBlockPublisher;
|
|
|
|
impl BlockPublisherTrait for MockBlockPublisher {
|
|
async fn new(
|
|
_config: &BedrockConfig,
|
|
_bedrock_signing_key: Ed25519Key,
|
|
_resubmit_interval: Duration,
|
|
_initial_checkpoint: Option<SequencerCheckpoint>,
|
|
_on_checkpoint: CheckpointSink,
|
|
_on_finalized_block: FinalizedBlockSink,
|
|
_on_deposit_event: OnDepositEventSink,
|
|
) -> Result<Self> {
|
|
Ok(Self)
|
|
}
|
|
|
|
async fn publish_block(&self, _block: &Block) -> Result<()> {
|
|
Ok(())
|
|
}
|
|
}
|