The current chain optimization is badly defined, as you need to give it a block,
but for some blocks the optimization will always fail, as the nodes will not
accept the new forward-links.
This PR re-defines the chain optimization:
if given a skipchain-ID it optimizes the route from the genesis to the latest block
if given a random skipblock-ID, it optimizes that block only
This will allow to crawl through all blocks and ask an optimization for every
block that is lacking forward-links.
The current chain optimization is badly defined, as you need to give it a block, but for some blocks the optimization will always fail, as the nodes will not accept the new forward-links.
This PR re-defines the chain optimization:
This will allow to crawl through all blocks and ask an optimization for every block that is lacking forward-links.
Depends on #2423