Skip to content
Snippets Groups Projects
Commit b96fba86 authored by ss77's avatar ss77
Browse files

Add ledger_state and ledger_manger struct

parent 605f6108
No related branches found
No related tags found
No related merge requests found
use crate::crypto::hash::H256;
use std::collections::HashSet;
//state required by ledger-manager
pub struct LedgerManagerState {
pub last_level_processed: u32,
pub proposer_blocks_processed: HashSet<H256>,
pub leader_sequence: Vec<H256>,
  • Maintainer

    leader_sequence could be a HashMap, Vec also works.

  • Please register or sign in to reply
pub tx_confirmed: HashSet<H56>,
}
//ledger-manager which will periodically loop and confirm the transactions
pub struct LedgerManager {
pub ledger_manager_state: LedgerManagerState,
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment