Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 747 Bytes

tech_how_to_check_a_ballot_is_valid.md

File metadata and controls

23 lines (16 loc) · 747 Bytes
layout permalink
post
/how-to-check-a-ballot-is-valid/

How to check a ballot is valid

A node must validate the ballot with transactions from proposer(Please refer to How the consensus protocol works). This is because only valid ballot must be agreed and confirmed.

Ballot Structure

When a ballot is made by the proposer, it has valid transactions.

Received Ballot Validation

A ballot is valid if all transactions are passed the validation check by itself.

Transaction Validation

A transaction is valid if,

  1. it has valid checkpoint,
  2. the source account has enough balance to pay for the transaction and
  3. it's Operations are valid