Skip to content

Commit

Permalink
[dag] e2e decoupled payload integration
Browse files Browse the repository at this point in the history
  • Loading branch information
ibalajiarun committed Feb 21, 2024
1 parent 378cacd commit 82d3dbd
Show file tree
Hide file tree
Showing 14 changed files with 454 additions and 107 deletions.
4 changes: 4 additions & 0 deletions consensus/src/dag/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use super::{
dag_store::DagStore,
observability::counters::{NUM_NODES_PER_BLOCK, NUM_ROUNDS_PER_BLOCK},
payload::DagPayloadStore,
types::DagPayload,
NodeMessage,
};
Expand Down Expand Up @@ -97,6 +98,7 @@ pub(crate) fn compute_initial_block_and_ledger_info(
pub(super) struct OrderedNotifierAdapter {
executor_channel: UnboundedSender<OrderedBlocks>,
dag: Arc<DagStore>,
payload_store: Arc<DagPayloadStore>,
parent_block_info: Arc<RwLock<BlockInfo>>,
epoch_state: Arc<EpochState>,
ledger_info_provider: Arc<RwLock<LedgerInfoProvider>>,
Expand All @@ -107,13 +109,15 @@ impl OrderedNotifierAdapter {
pub(super) fn new(
executor_channel: UnboundedSender<OrderedBlocks>,
dag: Arc<DagStore>,
payload_store: Arc<DagPayloadStore>,
epoch_state: Arc<EpochState>,
parent_block_info: BlockInfo,
ledger_info_provider: Arc<RwLock<LedgerInfoProvider>>,
) -> Self {
Self {
executor_channel,
dag,
payload_store,
parent_block_info: Arc::new(RwLock::new(parent_block_info)),
epoch_state,
ledger_info_provider,
Expand Down
Loading

0 comments on commit 82d3dbd

Please sign in to comment.