spl_account_compression::concurrent_tree_wrapper

Function tree_bytes_uninitialized

source
pub fn tree_bytes_uninitialized(tree_bytes: &[u8]) -> bool
Expand description

Checks whether the tree in not initialized yet without doing the deserialization. A rought equivalent to deserializing the tree and calling is_initialized() on it without the heavy lifting with macros. An empty account is a zero’d account. The tree is considered empty if the tree_bytes are all 0. A regular non-batch initialized tree is initialized early on when the init_empty_merkle_tree is called. A batch initialized tree stays uninitialized until the init_prepared_tree_with_root is called.