mirror of
https://github.com/logos-storage/logos-storage-docs-obsidian.git
synced 2026-01-02 13:23:08 +00:00
Make the purpose a bit more concise
This commit is contained in:
parent
0b9bfc2d0f
commit
6942ac3a1d
@ -2,12 +2,7 @@
|
||||
|
||||
## 1. Purpose and Scope
|
||||
|
||||
The Purchase module manages the lifecycle of a storage agreement between a client and a host in Codex. Its main responsibilities are to:
|
||||
|
||||
* Create new purchases from a `StorageRequest`.
|
||||
* Initialize them in the correct starting state `pending` for new purchases, `unknown` for recovered ones.
|
||||
* Keep accurate tracking so the current state of a purchase is always known and can be queried at any time.
|
||||
* Determine the terminal state based on the request state returned by the `marketplace`.
|
||||
The Purchase module manages the lifecycle of a storage agreement between a client and a host in Codex. It ensures that each purchase is correctly initialized, tracked, and completed according to the state of its corresponding `StorageRequest` in the marketplace.
|
||||
|
||||
Purchases are implemented as a state machine that progresses through defined states until reaching a deterministic terminal state (`finished`, `cancelled`, `failed`, or `errored`).
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user