DAL: simplify fetching of protocol plugins
What
This MR makes the DAL node fetch all available plugins, instead of just those corresponding to its storage period. It also simplifies the method of fetching plugins.
Why
- Less
No_plugin_for_protocolfailures: in particular, it allows to ask the DAL node information for a level which is outside the storage period. - It simplifies the code.
How
Instead of doing a binary search in the storage period to find the level at which there was a migration and fetch the plugin for the corresponding protocols, the new approach is based on calling /chains/main/protocols, which retrieves all the protocols that the L1 node is aware of.
Edited by Eugen Zalinescu