SG Consensus Algorithm Implementation
Last updated
Last updated
SG Consensus algorithm is based on GOSSIP protocol.
System uses libp2p library for P2P Gossip messaging.
Gossip Message Types
BLOCK ANNOUNCE
VERIFICATION
TRANSACTIONS
STATUS
BLOCK REQUEST
Consensus protocol uses VERIFICATION
gossip message for consensus process. There are two different types of VERIFICATION message
VOTE message
FIN message
There are three different types of Vote Messages Primary Propose Primary node broadcasts Primary Propose message to all nodes to validate a transaction. Pre Vote Nodes after receiving Primary Propose send Pre-Vote message (initial vote) to all other nodes. Pre Commit Nodes after receiving pre-votes from other nodes sends stronger commitment using pre-commit vote.
Vote Message Format
| Voting Round Number
| Membership Counter
| Message Data
|