1

I am reading the solana docs, commitment, but it is little confusing, is there anyone who can explain in better way for good understanding?

1

1 Answer 1

0

Per the Solana Commitment docs:

Commitment measures the network confirmation for the block.

In any distributed system, one has to specify the level of consensus between nodes that is required to consider something to have been 'accepted'. It's a tradeoff between responsiveness and certainty.

'Confirmed' is faster, but there's a small chance your commit ends up in a short-lived fork rather than in the main blockchain. 'Finalised' is slower, but provides greater certainty because more blocks have been built on top of the block containing your transaction, which means it is very likely your transaction is in the main blockchain.

See https://docs.solanalabs.com/consensus/commitments for a table of the different commitment levels and their meanings.

2
  • Thank you for your comment. Feb 16 at 12:54
  • @DreamNinja thanks but the best thing to do is upvote it, and if it helps you, mark it as the accepted answer.
    – mikemaccana
    Feb 16 at 14:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.