common/ops

This commit is contained in:
hinto.janai 2024-09-04 16:21:53 -04:00
parent 7a784459da
commit 7ae2e5e5b4
No known key found for this signature in database
GPG key ID: D47CE05FA175A499

View file

@ -1 +1,11 @@
# 🟢 ops
# `ops`
Both [`cuprate_blockchain`](https://doc.cuprate.org/cuprate_blockchain)
and [`cuprate_txpool`](https://doc.cuprate.org/cuprate_txpool) expose an
`ops` module containing abstracted abstracted Monero-related database operations.
For example, [`cuprate_blockchain::ops::block::add_block`](https://doc.cuprate.org/cuprate_blockchain/ops/block/fn.add_block.html).
These functions build on-top of the database traits and allow for more abstracted database operations.
Although these are exposed, they are not the main API, that would be next section:
the [`tower::Service`](./service/intro.md) (which uses these functions).