fix(cli): remove usage of StageDB on DbTool (#448)

* use view and update instead of StageDB

* change DbTool docs

* clippy
This commit is contained in:
joshieDo
2022-12-15 15:33:49 +08:00
committed by GitHub
parent 43f6bb9127
commit 7b6bf0820e
6 changed files with 72 additions and 62 deletions

View File

@@ -682,10 +682,10 @@ mod tests {
Some((key, _)) => key,
None => return Ok(()),
};
let mut walker = tx_count_cursor.walk(first_tx_count_key)?.peekable();
let walker = tx_count_cursor.walk(first_tx_count_key)?.peekable();
let mut prev_entry: Option<(BlockNumHash, NumTransactions)> = None;
while let Some(entry) = walker.next() {
for entry in walker {
let (key, count) = entry?;
// Validate sequentiality only after prev progress,