|
using | CheckAvailability = std::function< bool(ccf::View view, ccf::SeqNo seqno, std::string &error_reason)> |
|
using | HandleReadWriteHistoricalQuery = std::function< void(ccf::endpoints::EndpointContext &args, StatePtr state)> |
|
using | HandleReadOnlyHistoricalQuery = std::function< void(ccf::endpoints::ReadOnlyEndpointContext &args, StatePtr state)> |
|
using | HandleHistoricalQuery = HandleReadWriteHistoricalQuery |
|
using | CommandTxIDExtractor = std::function< std::optional< ccf::TxID >(endpoints::CommandEndpointContext &args)> |
|
using | ReadOnlyTxIDExtractor = std::function< std::optional< ccf::TxID >(endpoints::ReadOnlyEndpointContext &args)> |
|
using | TxIDExtractor = std::function< std::optional< ccf::TxID >(endpoints::EndpointContext &args)> |
|
using | ErrorHandler = std::function< void(HistoricalQueryErrorCode err, std::string reason, endpoints::EndpointContext &args)> |
|
using | ReadOnlyErrorHandler = std::function< void(HistoricalQueryErrorCode err, std::string reason, endpoints::ReadOnlyEndpointContext &args)> |
|
using | CheckHistoricalTxStatus = std::function< HistoricalTxStatus(ccf::View view, ccf::SeqNo seqno, std::string &error_reason)> |
|
using | StatePtr = std::shared_ptr< State > |
|
using | RequestHandle = size_t |
|
using | ExpiryDuration = std::chrono::seconds |
|
using | CacheSize = size_t |
|
using | CompoundHandle = std::pair< RequestNamespace, RequestHandle > |
|
|
std::optional< ccf::TxID > | txid_from_header (endpoints::CommandEndpointContext &args) |
|
void | default_error_handler (HistoricalQueryErrorCode err, std::string reason, endpoints::CommandEndpointContext &args) |
|
HistoricalTxStatus | is_tx_committed_v2 (ccf::kv::Consensus *consensus, ccf::View view, ccf::SeqNo seqno, std::string &error_reason) |
|
ccf::endpoints::EndpointFunction | adapter_v3 (const HandleHistoricalQuery &f, ccf::AbstractNodeContext &node_context, const CheckHistoricalTxStatus &available, const TxIDExtractor &extractor=txid_from_header) |
|
ccf::endpoints::ReadOnlyEndpointFunction | read_only_adapter_v3 (const HandleReadOnlyHistoricalQuery &f, ccf::AbstractNodeContext &node_context, const CheckHistoricalTxStatus &available, const ReadOnlyTxIDExtractor &extractor=txid_from_header) |
|
ccf::endpoints::EndpointFunction | read_write_adapter_v3 (const HandleReadWriteHistoricalQuery &f, ccf::AbstractNodeContext &node_context, const CheckHistoricalTxStatus &available, const TxIDExtractor &extractor=txid_from_header) |
|
ccf::endpoints::ReadOnlyEndpointFunction | read_only_adapter_v4 (const HandleReadOnlyHistoricalQuery &f, ccf::AbstractNodeContext &node_context, const CheckHistoricalTxStatus &available, const ReadOnlyTxIDExtractor &extractor=txid_from_header, const ReadOnlyErrorHandler &ehandler=default_error_handler) |
|
ccf::endpoints::EndpointFunction | read_write_adapter_v4 (const HandleReadWriteHistoricalQuery &f, ccf::AbstractNodeContext &node_context, const CheckHistoricalTxStatus &available, const TxIDExtractor &extractor=txid_from_header, const ErrorHandler &ehandler=default_error_handler) |
|
bool | populate_service_endorsements (ccf::kv::ReadOnlyTx &tx, ccf::historical::StatePtr &state, AbstractStateCache &state_cache, std::shared_ptr< NetworkIdentitySubsystemInterface > network_identity_subsystem) |
|
bool | populate_cose_service_endorsements (ccf::kv::ReadOnlyTx &tx, ccf::historical::StatePtr &state, AbstractStateCache &state_cache) |
|
template<class TQueryHandler , class TEndpointFunction , class TEndpointContext , class TTxIDExtractor > |
TEndpointFunction | _adapter_v3 (const TQueryHandler &f, ccf::AbstractNodeContext &node_context, const CheckHistoricalTxStatus &available, const TTxIDExtractor &extractor) |
|
template<class TQueryHandler , class TEndpointFunction , class TEndpointContext , class TTxIDExtractor , class TErrorHandler > |
TEndpointFunction | _adapter_v4 (const TQueryHandler &f, ccf::AbstractNodeContext &node_context, const CheckHistoricalTxStatus &available, const TTxIDExtractor &extractor, const TErrorHandler &ehandler) |
|
std::optional< ServiceInfo > | find_previous_service_identity (ccf::kv::ReadOnlyTx &tx, ccf::historical::StatePtr &state, AbstractStateCache &state_cache) |
|