Proto/Baker: load cache lazily
When the baker forges a block, there is probably no need to fully load the cache.
This change was proposed after @iguerNL observed that loading the cache is progressively taking more and more time on the idiazabal testnet.
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment, theDevelopment Versionsection ofCHANGES.mdfor everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Eugen Zalinescu