I wanna show users the confirmation height of their transactions. Which one is the way to go?
Latest block - transaction block
Last irreversible block - transaction block ?
EOS.IO Stack Exchange is a question and answer site for users and developers of distributed applications built on top of the blockchain operating system, EOS.IO. It only takes a minute to sign up.Sign up to join this community
According to the whitepaper:
Typical DPOS blockchains have 100% block producer participation. A transaction can be considered confirmed with 99.9% certainty after an average of 0.25 seconds from time of broadcast.
In addition to DPOS, EOS.IO adds asynchronous Byzantine Fault Tolerance (aBFT) for faster achievement of irreversibility. The aBFT algorithm provides 100% confirmation of irreversibility within 1 second.
Therefore, unlike in other blockchains, I would say the message should be binary: your transaction is irreversible (behind an irreversible block) or your transaction is not yet irreversible but has X confirmations (Latest block - transaction block)