Skip to content

Commit

Permalink
forester batch ops refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeytimoshin committed Jan 5, 2025
1 parent 4cbc426 commit b4a19ae
Show file tree
Hide file tree
Showing 27 changed files with 2,557 additions and 648 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion forester-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ light-registry = { workspace = true }
light-system-program = { workspace = true, features = ["cpi"] }
light-utils = { workspace = true }
light-batched-merkle-tree = { workspace = true }

light-verifier = { workspace = true }
photon-api = { workspace = true }
light-client = { workspace = true }

Expand Down
2 changes: 2 additions & 0 deletions forester-utils/src/forester_epoch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ pub enum TreeType {
Address,
State,
BatchedState,
BatchedAddress,
}

impl Display for TreeType {
Expand All @@ -94,6 +95,7 @@ impl Display for TreeType {
TreeType::Address => write!(f, "address"),
TreeType::State => write!(f, "state"),
TreeType::BatchedState => write!(f, "batched state"),
TreeType::BatchedAddress => write!(f, "batched address"),
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions forester-utils/src/indexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,14 @@ pub trait Indexer<R: RpcConnection>: Sync + Send + Debug + 'static {
) {
unimplemented!()
}

async fn finalize_batched_address_tree_update(
&mut self,
_rpc: &mut R,
_merkle_tree_pubkey: Pubkey,
) {
unimplemented!()
}
}

#[derive(Debug, Clone)]
Expand Down
Loading

0 comments on commit b4a19ae

Please sign in to comment.