Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
StanChe committed May 27, 2024
1 parent 47a3e8c commit b208909
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,6 @@ impl ConcurrentMerkleTreeHeader {
}
}

pub fn is_initialized(&self) -> bool {
match self.account_type {
CompressionAccountType::Uninitialized => false,
CompressionAccountType::ConcurrentMerkleTree => {
match &self.header {
ConcurrentMerkleTreeHeaderData::V1(header) => {
header.max_buffer_size != 0 && header.max_depth != 0
}
}
}
}
}

pub fn get_max_depth(&self) -> u32 {
match &self.header {
ConcurrentMerkleTreeHeaderData::V1(header) => header.max_depth,
Expand Down

0 comments on commit b208909

Please sign in to comment.