Skip to content

Commit 7b8f7e4

Browse files
committed
pre release check
1 parent 1742903 commit 7b8f7e4

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ The main backend service is in the `node` package. To start the server:
5151
cargo run --release
5252
```
5353

54+
### Proving Thread
55+
56+
The proving process runs in a **dedicated background thread** using Tokio.
57+
This thread periodically (interval configurable via the `BLOCK_INTERVAL` environment variable) queries the database for unverified payloads, groups them, and runs the prover logic.
58+
Once a proof is generated, the thread commits the state and updates the relevant payloads as verified in the database.
59+
60+
**Key points:**
61+
- The proving thread does not block the main server endpoints.
62+
- The interval for proving is set via the `.env` file (`BLOCK_INTERVAL`).
63+
- All database and proving operations are handled asynchronously.
64+
65+
5466
The server will start on `http://localhost:8080` and expose several endpoints:
5567
- `/payload` — Submit a single energy payload (POST)
5668
- `/batch-payloads` — Submit multiple payloads (POST)

0 commit comments

Comments
 (0)