This PR build on top of: https://github.com/iotaledger/iota-core/pull/939 and fixes a problem where we created a short living chain for newly produced engine commitments that replace an already existing commitment extending the same chain.
The problem is fixed by registering ourselves as the main child of our parent (forceChain) before we initialize the behavior of the commitment (so it doesn't prematurely determine its chain).
This PR build on top of: https://github.com/iotaledger/iota-core/pull/939 and fixes a problem where we created a short living chain for newly produced engine commitments that replace an already existing commitment extending the same chain.
The problem is fixed by registering ourselves as the main child of our parent (forceChain) before we initialize the behavior of the commitment (so it doesn't prematurely determine its chain).