CCF
|
Functions | |
virtual void | ccf::RpcContext::set_apply_writes (bool apply)=0 |
virtual void | ccf::RpcContext::set_claims_digest (ccf::ClaimsDigest::Digest &&digest)=0 |
Methods which affect how the framework processes this transaction.
|
pure virtual |
Tells the framework to apply or not apply this transaction. By default that decision is based on the response status, with successes applied and errors producing no persistent writes. This value will override, allowing changes to be persisted/dropped regardless of response type.
Implemented in http::HttpRpcContext.
|
pure virtual |
Sets the application claims digest associated with this transaction. This digest is used to construct the Merkle tree leaf representing this transaction. This allows a transaction to make specific, separately-revealable claims in each transaction, without being bound to the transaction serialisation format or what is stored in the KV. The digest will be included in receipts issued for that transaction.
Implemented in ccf::RpcContextImpl.