mirror of
https://github.com/Rate-Limiting-Nullifier/pmtree.git
synced 2026-01-10 13:17:57 -05:00
refactor: minor changes in batch_insertion
This commit is contained in:
@@ -238,8 +238,8 @@ where
|
||||
)?;
|
||||
|
||||
// Update next_index value in db
|
||||
if start + leaves.len() > self.next_index {
|
||||
self.next_index = start + leaves.len();
|
||||
if end > self.next_index {
|
||||
self.next_index = end;
|
||||
self.db
|
||||
.put(NEXT_INDEX_KEY, self.next_index.to_be_bytes().to_vec())?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user