#include <committable_tx.h>
Inherits ccf::kv::Tx, and ccf::kv::AbstractChangeContainer.
Inherited by ccf::kv::ReservedTx.
◆ TxFlags
◆ TxFlag
Enumerator |
---|
LEDGER_CHUNK_AT_NEXT_SIGNATURE | |
SNAPSHOT_AT_NEXT_SIGNATURE | |
LEDGER_CHUNK_BEFORE_THIS_TX | |
◆ CommittableTx()
◆ commit()
CommitResult ccf::kv::CommittableTx::commit |
( |
const ccf::ClaimsDigest & |
claims = ccf::empty_claims() , |
|
|
std::function< std::tuple< Version, Version >(bool has_new_map)> |
version_resolver = nullptr , |
|
|
std::function< void(const std::vector< uint8_t > &write_set, const std::string &commit_evidence)> |
write_set_observer = nullptr |
|
) |
| |
|
inline |
◆ commit_term()
Version ccf::kv::CommittableTx::commit_term |
( |
| ) |
|
|
inline |
Get term in which this transaction was committed.
Throws if this is not successfully committed - should only be called if an earlier call to commit() returned CommitResult::SUCCESS
- Returns
- Commit term
◆ commit_version()
Version ccf::kv::CommittableTx::commit_version |
( |
| ) |
|
|
inline |
Get version at which this transaction was committed.
Throws if this is not successfully committed - should only be called if an earlier call to commit() returned CommitResult::SUCCESS
- Returns
- Commit version
◆ get_req_id()
◆ get_txid()
std::optional< TxID > ccf::kv::CommittableTx::get_txid |
( |
| ) |
|
|
inline |
◆ get_version()
Version ccf::kv::CommittableTx::get_version |
( |
| ) |
|
|
inline |
Version for the transaction set
- Returns
- Committed version, or
ccf::kv::NoVersion
otherwise
◆ serialise()
std::vector< uint8_t > ccf::kv::CommittableTx::serialise |
( |
ccf::crypto::Sha256Hash & |
commit_evidence_digest, |
|
|
std::string & |
commit_evidence, |
|
|
const ccf::ClaimsDigest & |
claims_digest_, |
|
|
bool |
include_reads = false |
|
) |
| |
|
inlineprotected |
◆ set_change_list()
void ccf::kv::CommittableTx::set_change_list |
( |
OrderedChanges && |
change_list_, |
|
|
Term |
term_ |
|
) |
| |
|
inlineoverridevirtual |
◆ set_read_txid()
void ccf::kv::CommittableTx::set_read_txid |
( |
const TxID & |
tx_id, |
|
|
Term |
commit_view_ |
|
) |
| |
|
inline |
◆ set_req_id()
◆ set_root_at_read_version()
◆ set_tx_flag()
virtual void ccf::kv::CommittableTx::set_tx_flag |
( |
TxFlag |
flag | ) |
|
|
inlinevirtual |
◆ set_view()
void ccf::kv::CommittableTx::set_view |
( |
ccf::View |
view_ | ) |
|
|
inline |
◆ tx_flag_enabled()
virtual bool ccf::kv::CommittableTx::tx_flag_enabled |
( |
TxFlag |
f | ) |
const |
|
inlinevirtual |
◆ unset_tx_flag()
virtual void ccf::kv::CommittableTx::unset_tx_flag |
( |
TxFlag |
flag | ) |
|
|
inlinevirtual |
◆ committed
bool ccf::kv::CommittableTx::committed = false |
|
protected |
◆ entry_flags
◆ flags
TxFlags ccf::kv::CommittableTx::flags = 0 |
|
protected |
◆ req_id
◆ success
bool ccf::kv::CommittableTx::success = false |
|
protected |
◆ version
Version ccf::kv::CommittableTx::version = NoVersion |
|
protected |
The documentation for this class was generated from the following file: