conflux-rust icon indicating copy to clipboard operation
conflux-rust copied to clipboard

The latest confirm epoch number rollback frequently in testnet, almost once per minute

Open wangdayong228 opened this issue 4 years ago • 3 comments

The latest confirm epoch number rollback frequently in testnet, almost once per minute. The peer internet connection delay of ping is almost between 50ms~100ms. So is there any reason may lead to this case?

That makes the latest confirm epoch not stable, could config the confirmationRisk in config.toml file to give user chance to set long confirm period to ensure latest confirm epoch stable?

wangdayong228 avatar Dec 18 '20 10:12 wangdayong228

I think make confirmationRisk configurable is possible

fanlong avatar Dec 28 '20 16:12 fanlong

I guess this is because the current estimate_confirmation_risk skims a check: "where such block has been followed by all the honest nodes".

Besides, even if we have a correct implementation for estimate_confirmation_risk, it is not guaranteed that the confirmed epoch height does not rollback. We only guarantee that once an epoch height is confirmed, it will be reverted in the future with a really small probability (<1e-8), under predescribed attacker's computing power.

ChenxingLi avatar Jan 05 '21 10:01 ChenxingLi

I imagine this "rollback" happens when an epoch's confirmation risk is very low (<1e-8) then it temporarily increases (e.g. to 1e-7). Still, when we talk about an epoch being confirmed, we mean that we consider it practically impossible for it to be reverted. I am not familiar with the confirmation meter module, but we could consider adding some logic to remember the highest confirmed epoch number and making sure it is monotonically increasing.

Thegaram avatar Jan 06 '21 01:01 Thegaram