mirror of
https://github.com/logos-co/nomos-node.git
synced 2026-08-31 11:31:09 +00:00
* Minor changes after first code browsing session * Apply block locally before propagating * New code compiling * Update comment + code * Update prune_forks function * Add logs * Add basic test for pruning * Finalize code * Remove unrelated changes * Final changes * Minor comment change * feat: integrate fork pruning in cryptarchia service (#1262) * Prune old forks after writing new state to storage * Re-apply changes to cryptarchia service * Add logs for number of pruned forks * Return info about pruned blocks (#1265) * Remove ledger state from memory as well when pruning * Add storage operations to prune blocks * Push before refactoring * Some refactoring * Last touches * Remove errors and batch deletion * Last changes * Address PR reviews * Debug log if we prune an existing note * Collect early on * Do not update input state until blocks are deleted from storage * Do not prune forks on startup * First crack at adding prunable blocks to cryptarchia recovery * Use default impl for remove_blocks trait fn * Use local_chain * Last fixes * Rework the way prunable forks are returned * Update code * Use flat_map instead * Log storage error * filter_map + collect * Re-introduce collect * Use Box<dyn> * Recovery test passing * Last changes * Last changes * Code compiling on top of Giacomo changes * Fix cryptarchia engine tests * cryptarchia-consensus tests passing * Last changes * Replace k-th block with LIB * Move recovery logic to state and not cryptarchia * Rename log message * Change log level * Use Vec for internal function * Address new rustc warnings