iotaledger / iota-core

Apache License 2.0
60 stars 12 forks source link

Fix: Tiebreaker for chains with equal weight #939

Closed hmoog closed 5 months ago

hmoog commented 5 months ago

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.