Developer Documentation
  • What is CTEX?
  • Learn about CTEX Chain
    • Ctex Overview: vision, strategy and platform components
    • The Ctex Blockchain
      • Ctex Consensus Mechanism
      • Delegation and Staking with Validators
      • Ethereum (EVM) Compatibility and Smart Contracts
      • Boosting Ctex's Scalability
  • Empowering Global Payments with Ctex
  • Ctex Key Feature
  • Ctex Consensus
  • CTEX Clusters
    • CTEXChain Mainnet
    • CTEXChain Testnet
    • CLI Command
    • Ctex Faucet
    • Audit Report
  • Integrating with Metamask
    • Add Ctex Chain Network to Metamask
    • Config Custom Token
    • How to Reset Metamask Wallet
  • CTEX Exclusive Product
  • Ctex Coin
    • Technical
    • Utility
    • Distribution
  • Run Master Node
  • Developer Guide
    • Token Standard
      • CTEX-721 Token
      • CTEX-20 Token
  • APIs
    • accounts
    • blockNumber
    • call
    • chainId
    • estimateGas
    • gasPrice
    • getBalance
    • getBlockByHash
    • getBlockByNumber
    • getBlockTransactionCountByHash
    • getBlockTransactionCountByNumber
    • getCode
    • getLogs
    • getStorageAt
    • getTransactionByBlockHashAndIndex
    • getTransactionByBlockNumberAndIndex
    • getTransactionByHash
    • getTransactionCount
    • getTransactionReceipt
    • getUncleByBlockHashAndIndex
    • getUncleByBlockNumberAndIndex
    • getUncleCountByBlockHash
    • getUncleCountByBlockNumber
    • getWork
    • hashrate
    • mining
    • protocolVersion
    • sendRawTransaction
    • submitWork
    • syncing
    • net_listening
    • net_peerCount
    • net_version
    • web3_clientVersion
    • parity_nextNonce
    • Filter methods
    • newFilter
    • newBlockFilter
    • getFilterChanges
    • uninstallFilter
  • Depolying CTEX chain
    • Using Remix
    • Using Truffle
    • Using Hardhat
    • Using Replit
    • Using Alchemy
  • Whitepaper
  • Technical Paper
  • Yellow Paper
Powered by GitBook
On this page

Ctex Consensus

PreviousCtex Key FeatureNextCTEX Clusters

Last updated 1 year ago

  1. Sampling Process: Validators in the network are randomly sampled to determine their opinion on whether a transaction should be accepted or rejected. This sampling process helps gather input from a diverse set of validators.

  2. Acceptance Threshold: A sufficiently large portion (alpha α) of the sampled validators need to agree on whether to accept or reject the transaction. This threshold ensures that decisions are made based on a consensus among a significant portion of the network.

  3. Consecutive Rounds: Validators repeat the sampling process for multiple consecutive rounds (beta β) until a consistent opinion is reached among the sampled validators. This iterative approach helps to confirm the validity of transactions over time.

  4. Conflict Resolution: In cases where conflicting transactions exist, honest validators quickly converge around a single transaction through a positive feedback loop. This clustering process ensures that correct validators ultimately prefer the same transaction, leading to its acceptance.

Finalization Process: Once a transaction has received consensus agreement among a significant portion of validators for multiple consecutive rounds, it is finalized and added to the blockchain. Finalization occurs quickly for non-conflicting transactions, while conflicting transactions undergo a clustering process until a clear consensus is reached.

Benefits:

  • Efficiency: The protocol enables quick validation and finalization of transactions, especially in the absence of conflicts.

  • Security: Through random sampling and iterative rounds, the protocol ensures that decisions are made based on input from a diverse set of validators, enhancing security.

  • Decentralization: By involving a large number of validators in the consensus process, CTEX Chain maintains decentralization and resilience against attacks.

Overall, the consensus protocol of CTEX Chain combines random sampling, iterative rounds, and conflict resolution mechanisms to achieve efficient and secure transaction validation on the blockchain.