Enum concordium_base::base::ProtocolVersion
source · pub enum ProtocolVersion {
P1,
P2,
P3,
P4,
P5,
P6,
}Expand description
An enumeration of the supported versions of the consensus protocol. Binary and JSON serializations are as Word64 corresponding to the protocol number.
Variants§
P1
The initial protocol version at mainnet launch.
P2
Protocol P2 introduces support for transfers with memos.
P3
Protocol P3 introduces support for account aliases. Each account can
now be referred to by 2^24 different addresses.
P4
Protocol P4 is a major upgrade that adds support for delegation,
baking pools, and V1 smart contracts.
P5
Protocol P5 is a minor upgrade that adds support for smart contract
upgradability, smart contract queries, relaxes some limitations and
improves the structure of internal node datastructures related to
accounts.
P6
Protocol P6 is a future protocol update that will introduce a new
consensus.
Trait Implementations§
source§impl Clone for ProtocolVersion
impl Clone for ProtocolVersion
source§fn clone(&self) -> ProtocolVersion
fn clone(&self) -> ProtocolVersion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ProtocolVersion
impl Debug for ProtocolVersion
source§impl Deserial for ProtocolVersion
impl Deserial for ProtocolVersion
fn deserial<R: ReadBytesExt>(source: &mut R) -> ParseResult<Self>
source§impl<'de> Deserialize<'de> for ProtocolVersion
impl<'de> Deserialize<'de> for ProtocolVersion
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl Display for ProtocolVersion
impl Display for ProtocolVersion
source§impl From<ProtocolVersion> for u64
impl From<ProtocolVersion> for u64
source§fn from(pv: ProtocolVersion) -> Self
fn from(pv: ProtocolVersion) -> Self
source§impl Ord for ProtocolVersion
impl Ord for ProtocolVersion
source§fn cmp(&self, other: &ProtocolVersion) -> Ordering
fn cmp(&self, other: &ProtocolVersion) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<ProtocolVersion> for ProtocolVersion
impl PartialEq<ProtocolVersion> for ProtocolVersion
source§fn eq(&self, other: &ProtocolVersion) -> bool
fn eq(&self, other: &ProtocolVersion) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd<ProtocolVersion> for ProtocolVersion
impl PartialOrd<ProtocolVersion> for ProtocolVersion
source§fn partial_cmp(&self, other: &ProtocolVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &ProtocolVersion) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more