|
OpenCBDC Transaction Processor
|
Interface for querying the read-only state of a locking shard. More...
#include <status_interface.hpp>

Public Member Functions | |
| status_interface ()=default | |
| virtual | ~status_interface ()=default |
| status_interface (const status_interface &)=default | |
| auto | operator= (const status_interface &) -> status_interface &=default |
| status_interface (status_interface &&)=default | |
| auto | operator= (status_interface &&) -> status_interface &=default |
| virtual auto | check_unspent (const hash_t &uhs_id) -> std::optional< bool >=0 |
| Queries whether the shard's UHS contains the given UHS ID. | |
| virtual auto | check_tx_id (const hash_t &tx_id) -> std::optional< bool >=0 |
| Queries whether the given TX ID is confirmed in the cache of recently confirmed TX IDs. | |
Interface for querying the read-only state of a locking shard.
Returns whether a given UHS ID is currently unspent or a TX ID has been confirmed.
Definition at line 18 of file status_interface.hpp.
|
default |
|
virtualdefault |
|
default |
|
default |
|
nodiscardpure virtual |
Queries whether the given TX ID is confirmed in the cache of recently confirmed TX IDs.
| tx_id | TX ID to query. |
Implemented in cbdc::locking_shard::locking_shard, and cbdc::locking_shard::rpc::status_client.
|
nodiscardpure virtual |
Queries whether the shard's UHS contains the given UHS ID.
| uhs_id | UHS ID to query. |
Implemented in cbdc::locking_shard::locking_shard, and cbdc::locking_shard::rpc::status_client.
|
default |
|
default |