Skip to content

Commit fde008f

Browse files
committed
comments from Edwin
1 parent d82b542 commit fde008f

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

magicblock-api/src/tickers.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use tokio_util::sync::CancellationToken;
2020

2121
use crate::slot::advance_slot_and_update_ledger;
2222

23+
// ER chain
2324
pub fn init_slot_ticker<C: ScheduledCommitsProcessor>(
2425
bank: &Arc<Bank>,
2526
committor_processor: &Option<Arc<C>>,
@@ -71,6 +72,7 @@ pub fn init_slot_ticker<C: ScheduledCommitsProcessor>(
7172
})
7273
}
7374

75+
// ER chain
7476
async fn handle_scheduled_commits<C: ScheduledCommitsProcessor>(
7577
bank: &Arc<Bank>,
7678
committor_processor: &Arc<C>,

magicblock-committor-program/src/instruction.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use borsh::{BorshDeserialize, BorshSerialize};
22
use solana_pubkey::Pubkey;
33

4+
// this is deployed on Base chain as user-program
5+
46
#[derive(BorshSerialize, BorshDeserialize, Debug, Clone)]
57
pub enum CommittorInstruction {
68
/// Initializes the buffer and [Chunks] accounts which will be used to

magicblock-committor-service/src/service.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ pub struct LookupTables {
3030
pub released: Vec<Pubkey>,
3131
}
3232

33+
// this is a part of ER.. and communicates with Base chain
34+
3335
#[derive(Debug)]
3436
pub enum CommittorMessage {
3537
ReservePubkeysForCommittee {

magicblock-processor/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ pub mod execute_transaction;
33
mod metrics;
44
pub mod token_balances;
55
mod utils;
6+
7+
// this is a part of ER ... executes end-users transactions
8+
// not relevant from dlp perspective

programs/magicblock/src/utils/instruction_utils.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ impl InstructionUtils {
105105
Self::into_transaction(&validator_authority(), ix, recent_blockhash)
106106
}
107107

108-
//pub(crate)
109-
fn scheduled_commit_sent_instruction(
108+
pub(crate) fn scheduled_commit_sent_instruction(
110109
magic_block_program: &Pubkey,
111110
validator_authority: &Pubkey,
112111
scheduled_commit_id: u64,

0 commit comments

Comments
 (0)