rename to iavltree.py

This commit is contained in:
Florian Stecker 2025-10-11 14:50:59 -04:00
parent a9b201c04d
commit 1957cec35a
2 changed files with 4 additions and 4 deletions

View File

@ -1,15 +1,15 @@
#!/usr/bin/env python
import plyvel
import read_tree
import iavltree
from tqdm import tqdm
with plyvel.DB('../node/nodedir/data/application.db') as db:
height = read_tree.max_height(db)
height = iavltree.max_height(db)
total = read_tree.count(db, 's/k:emissions/', height, 'Qss', key = [62])
total = iavltree.count(db, 's/k:emissions/', height, 'Qss', key = [62])
progress = tqdm(total = total)
it = read_tree.iterate(db, 's/k:emissions/', height, 'Qss', key = [62])
it = iavltree.iterate(db, 's/k:emissions/', height, 'Qss', key = [62])
for k, v in it:
progress.update(1)