Professional Documents
Culture Documents
Blockchain
Blockchain
Three-Phase Commit (3PC) Protocol is an This new coordinator checks status of the protocol
extension of the Two-Phase Commit (2PC) from the remaining sites. If the coordinator had
Protocol that avoids blocking problem under decided to commit, at least one of other ‘k’ sites that
certain assumptions. it informed will be up and will ensure that commit
In particular, it is assumed that no network decision is respected.
partition occurs, and not more than k sites fail, The new coordinator restarts third phase of protocol if
where we assume ‘k’ is predetermined any of rest sites knew that old coordinator intended to
number. commit transaction. Otherwise, new coordinator
With the mentioned assumptions, protocol aborts the transaction.
avoids blocking by introducing an extra third
phase where multiple sites are involved in the
decision to commit.
Instead of directly noting the commit decision
in its persistent storage, the coordinator first
ensures that at least ‘k’ other sites know that
it intended to commit transaction.
In a situation where coordinator fails,
remaining sites are bound to first select new
coordinator.
Types of Blockchain:
Public Blockchain
Private Blockchain
Consortium Blockchain
Hybrid Blockchain
Public Blockchain or Permissionless Blockchain
Public blockchains are decentralized and open to
anyone to participate. They rely on a network of
nodes to verify and validate transactions, which
are recorded on the blockchain anonymously and
transparently. Ethereum, Bitcoin, and Ripple are
some of the popular public blockchains.