Crate consensus_core

Source

Macros§

Structs§

  • BlockRef uniquely identifies a VerifiedBlock via digest. It also contains the slot info (round and author) so it can be used in logic such as aggregating stakes for a round.
  • A block certified by consensus for fast path execution.
  • A batch of certified blocks output by consensus for processing.
  • A clock that allows to derive the current UNIX system timestamp while guaranteeing that timestamp will be monotonically incremented, tolerating ntp and system clock changes and corrections. Explicitly avoid to make [Clock] cloneable to ensure that a single instance is shared behind an [Arc] wherever is needed in order to make sure that consecutive calls to receive the system timestamp will remain monotonically increasing.
  • Digest of a consensus commit.
  • Uniquely identifies a commit with its index and digest.
  • The output of consensus to execution is an ordered list of CommittedSubDag. Each CommittedSubDag contains the information needed to execution transactions in the consensus commit.
  • Exported API for testing. Creates fake blocks for testing. This struct is public for testing in other crates.
  • Exported API for testing. Sui transaction in serialised bytes
  • Exported API for testing. VerifiedBlock allows full access to its content. Note: clone() is relatively cheap with most underlying data refcounted.

Enums§

Traits§

  • TransactionVerifier implementation is supplied by Sui to validate transactions in a block, before acceptance of the block.

Functions§

  • Attempts to convert a multiaddr of the form /[ip4,ip6]/{}/[udp,tcp]/{port} into a SocketAddr value.

Type Aliases§