|
using | ConsensusHookPtr = std::unique_ptr< ConsensusHook > |
|
using | ConsensusHookPtrs = std::vector< ConsensusHookPtr > |
|
template<typename TWrites > |
using | CommitHook = std::function< void(Version, const TWrites &)> |
| Signature for transaction commit handlers.
|
|
template<typename TWrites > |
using | MapHook = std::function< std::unique_ptr< ConsensusHook >(Version, const TWrites &)> |
|
template<typename K , typename V , template< typename > typename KSerialiser, template< typename > typename VSerialiser = KSerialiser> |
using | MapSerialisedWith = TypedMap< K, V, KSerialiser< K >, VSerialiser< V > > |
|
template<typename K , typename V > |
using | JsonSerialisedMap = MapSerialisedWith< K, V, ccf::kv::serialisers::JsonSerialiser > |
|
template<typename K , typename V > |
using | RawCopySerialisedMap = TypedMap< K, V, ccf::kv::serialisers::BlitSerialiser< K >, ccf::kv::serialisers::BlitSerialiser< V > > |
|
template<typename K , typename V > |
using | Map = JsonSerialisedMap< K, V > |
|
using | ReadOnlyStorePtr = std::shared_ptr< ReadOnlyStore > |
|
template<typename K , template< typename > typename KSerialiser, typename Unit = ccf::kv::serialisers::ZeroBlitUnitCreator> |
using | SetSerialisedWith = TypedSet< K, KSerialiser< K >, Unit > |
|
template<typename K > |
using | JsonSerialisedSet = SetSerialisedWith< K, ccf::kv::serialisers::JsonSerialiser > |
|
template<typename K > |
using | RawCopySerialisedSet = TypedSet< K, ccf::kv::serialisers::BlitSerialiser< K > > |
|
template<typename K > |
using | Set = JsonSerialisedSet< K > |
|
template<typename V , template< typename > typename VSerialiser, typename Unit = ccf::kv::serialisers::ZeroBlitUnitCreator> |
using | ValueSerialisedWith = TypedValue< V, VSerialiser< V >, Unit > |
|
template<typename V > |
using | JsonSerialisedValue = ValueSerialisedWith< V, ccf::kv::serialisers::JsonSerialiser > |
|
template<typename V > |
using | RawCopySerialisedValue = TypedValue< V, ccf::kv::serialisers::BlitSerialiser< V > > |
|
template<typename V > |
using | Value = JsonSerialisedValue< V > |
|
using | Version = uint64_t |
|
using | OrderedChanges = std::map< std::string, MapChanges > |
|
using | MapCollection = std::map< std::string, std::shared_ptr< AbstractMap > > |
|
using | VersionLastNewMap = Version |
|
using | VersionResolver = std::function< std::tuple< Version, VersionLastNewMap >(bool tx_contains_new_map)> |
|
using | SerialisedKey = ccf::kv::serialisers::SerialisedEntry |
|
using | SerialisedValue = ccf::kv::serialisers::SerialisedEntry |
|
using | Term = uint64_t |
|
using | NodeId = ccf::NodeId |
|
using | ReconfigurationId = uint64_t |
|
using | BatchVector = std::vector< std::tuple< Version, std::shared_ptr< std::vector< uint8_t > >, bool, std::shared_ptr< ConsensusHookPtrs > > > |
|
using | EncryptorPtr = std::shared_ptr< AbstractTxEncryptor > |
|
using | SnapshotterPtr = std::shared_ptr< AbstractSnapshotter > |
|
using | SerialisedEntryFlags = uint8_t |
|
using | KvStoreSerialiser = GenericSerialiseWrapper< RawWriter > |
|
using | KvStoreDeserialiser = GenericDeserialiseWrapper< RawReader > |
|
using | StorePtr = std::shared_ptr< ccf::kv::Store > |
|
|
enum class | LeadershipState { None
, Leader
, Follower
, Candidate
} |
|
enum class | MembershipState { Active
, Retired
} |
|
enum class | RetirementPhase { Ordered = 1
, Signed = 2
, Completed = 3
, RetiredCommitted = 4
} |
|
enum | CommitResult { SUCCESS = 1
, FAIL_CONFLICT = 2
, FAIL_NO_REPLICATE = 3
} |
|
enum | SecurityDomain { PUBLIC
, PRIVATE
, SECURITY_DOMAIN_MAX
} |
|
enum | AccessCategory { INTERNAL
, GOVERNANCE
, APPLICATION
} |
|
enum class | EntryType : uint8_t {
WriteSet = 0
, Snapshot = 1
, WriteSetWithClaims = 2
, WriteSetWithCommitEvidence = 3
,
WriteSetWithCommitEvidenceAndClaims = 4
, MAX = WriteSetWithCommitEvidenceAndClaims
} |
|
enum | ApplyResult {
PASS = 1
, PASS_SIGNATURE = 2
, PASS_BACKUP_SIGNATURE = 3
, PASS_BACKUP_SIGNATURE_SEND_ACK = 4
,
PASS_NONCES = 5
, PASS_NEW_VIEW = 6
, PASS_ENCRYPTED_PAST_LEDGER_SECRET = 8
, PASS_APPLY = 9
,
FAIL = 10
} |
|
enum | EntryFlags : SerialisedEntryFlags { FORCE_LEDGER_CHUNK_AFTER = 0x01
, FORCE_LEDGER_CHUNK_BEFORE = 0x02
} |
|
|
| DECLARE_JSON_TYPE (TxID) |
|
void | to_json (nlohmann::json &j, const Configuration::NodeInfo &ni) |
|
void | from_json (const nlohmann::json &j, Configuration::NodeInfo &ni) |
|
std::string | schema_name (const Configuration::NodeInfo *) |
|
void | fill_json_schema (nlohmann::json &schema, const Configuration::NodeInfo *) |
|
| DECLARE_JSON_ENUM (LeadershipState, {{LeadershipState::None, "None"}, {LeadershipState::Leader, "Leader"}, {LeadershipState::Follower, "Follower"}, {LeadershipState::Candidate, "Candidate"}}) |
|
| DECLARE_JSON_ENUM (MembershipState, {{MembershipState::Active, "Active"}, {MembershipState::Retired, "Retired"}}) |
|
| DECLARE_JSON_ENUM (RetirementPhase, {{RetirementPhase::Ordered, "Ordered"}, {RetirementPhase::Signed, "Signed"}, {RetirementPhase::Completed, "Completed"}, {RetirementPhase::RetiredCommitted, "RetiredCommitted"}}) |
|
| DECLARE_JSON_TYPE (Configuration) |
|
| DECLARE_JSON_REQUIRED_FIELDS (Configuration, idx, nodes, rid) |
|
| DECLARE_JSON_TYPE (ConsensusDetails::Ack) |
|
| DECLARE_JSON_REQUIRED_FIELDS (ConsensusDetails::Ack, seqno, last_received_ms) |
|
| DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (ConsensusDetails) |
|
| DECLARE_JSON_REQUIRED_FIELDS (ConsensusDetails, configs, acks, membership_state, primary_id, current_view, ticking) |
|
| DECLARE_JSON_OPTIONAL_FIELDS (ConsensusDetails, reconfiguration_type, learners, leadership_state, retirement_phase) |
|