Analysis on the working principle of Tendermint (I.) _tendermint

Source: Internet
Author: User

When a TX comes in, the Mempool (MP) of the Tmcore is invoked abci-server application by Mempool connection (one socket connection, supplied by Logic, and the port number 46658) (AL: That is, Abci-app, the Checktx method in our own app logic written in any language, AL returns the validation results to the MP. MP releases or rejects the TX based on the validation results. Tendermint (TM) temporarily exists in the memory pool (mempool) and copies the TX to other TM nodes via Peer-to-peer network. TM launched the Byzantine consensus vote on this TX, with all 4 tendermint nodes involved. The voting process is divided into two rounds, the first round of the pre-voting (Prevote), more than 2/3 approved after the second round of pre-submission (Precommit), more than 2/3 recognized after the final round of formal submission (commit)

TM Submission TX is followed by consensus Connection (a socket connection, supplied by Abci-server, port number 46658) to Abci-app sending instructions beginblock--> multiple times delivertx-- >EndBlock--> Commit, the Stateroot (application Merkle root hash) is returned to TM,TM new block after the commit is successful.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.