This PR fixes a problem with the tie breaker for chains with equal weight, by waiting with registering the commitments until their divergence point is verified.
Otherwise it might happen, that we try to access data about our forking point and chain that is still unknown during the sync process. This currently prevents the chain switching from working.
This PR fixes a problem with the tie breaker for chains with equal weight, by waiting with registering the commitments until their divergence point is verified.
Otherwise it might happen, that we try to access data about our forking point and chain that is still unknown during the sync process. This currently prevents the chain switching from working.