From recent discussion we agreed on a model of resynchronization that is similar to on-tangle voting to be used on top of FPC for rare situations where we need to get nodes to correct their opinions.
Some points to be outlined here:
- This proposal is to be used on top of FPC, this means that on the existence of conflicting realities.
- Transaction may only be reverted up to a time t_{max}, which is lower than the BelowMaxDepth time.
- It is based on a two steps system: A trigger (evidence gathering) and a resynchronization (large scale query).
Trigger Step
In this step we gather evidence that the reality we decided on FPC is the wrong one.
-
Consider that we are considering two conflicting realities a and b.
-
Define T(a,t_0,t_1) the percentage of the mana associated with the nodes that issued transactions in the time interval (t_0,t_1] that approved reality a.
** If a node issued transactions approving both realities, we consider the most recent sequence number transaction only.
** As an example if 10 nodes issued transactions during that time and if 2 of them issued transactions approving reality b, then T(b) will be the mana of the said 2 nodes divided by the mana of all 10 nodes.
** It always will hold that T(a)+T(b)\leq 1. -
The procedure of the Trigger step read as follows:
- On the decision about a reality on FPC, the disliked one is added on the disliked buffer. Associated to it we will have a provisory list of nodes that will vouch for that reality, with their Mana values.
- After the finalization of FPC at time t, every Delta units of time we will check the mana received from time t, this means that at the k-th attempt we check if
- If the check is successful in any of the steps, we do a resynchronization step.
- Resynchronizations may happen as many time as needed until t_{max} has passed. What means that we can at most do t_{max}/\Delta changes of opinion, and it is increasingly harder to trigger the resynchronization step.
Resynchronization Step
- If a trigger happens, we will check if our opinion is against majority of the network.
- We query a large number of nodes asking about their opinion on reality a or b.
- If a supermajority of the network (i.e. 70%) prefer transaction b, we change our opinion, moving reality a to the disliked buffer and adding reality b to the ledger state.
Critics to the proposal
- The main critic is that we change our consensus mechanism completely with this, putting a new finalization procedure on top of FPC. For now we call the model with FPC+resynchronization by “Refined FPC”.
- As we have a second step after FPC, this may give us more room for attack vectors that we need to verify we are safe against. Although as a payoff we become much more resistant to voting/opinion failures.
- This resynchronization for now if only on the top of FPC problems, other sources of opinion divergence as censor attacks, DDoS and so are not covered by this. Although we theoretically could include them this opens someone to freely do resynchronization for every transaction, what could lead to problems.
- Last but not the least this is one extra communication procedure on the top of the many we build Coordicide upon, although it is in out plans to study the possible communication overhead this could even so slightly increase the requirements for a node to join the network.