Closed Alenar closed 4 months ago
3 files ±0 43 suites ±0 8m 23s :stopwatch: -1s 976 tests +4 976 :white_check_mark: +4 0 :zzz: ±0 0 :x: ±0 1 070 runs +4 1 070 :white_check_mark: +4 0 :zzz: ±0 0 :x: ±0
Results for commit e32d61b5. ± Comparison against base commit c0a7b67b.
:recycle: This comment has been updated with latest results.
Content
This PR changes the way the blocks are retrieved from the
BlockScanner
. Instead of giving the full list of blocks from the given cardano database it yields now aBlockStreamer
trait that allow to poll the blocks at a pace given by it's implementation (theImmutableBlockStreamer
yield them immutables per immutables).This reduce the memory load needed during the import process.
The
BlockStreamer
trait has been designed with the transition to thechain_sync
protocol using pallas in mind. As such it sadly don't implement the rustIterator
trait since it needs to be async.Note: Since
mithril-common/src/cardano_block_scanner.rs
would become quite huge with the new types introduced, it has been promoted to a module directory instead and it's types spread out to dedicated files.Pre-submit checklist
Comments
This PR should be merged after #1650 since its branch is based on that PR code.
Issue(s)
Closes #1646