This first commit contains the first and second implementation stabs (after primary review by @hsanjuan), using a stack for task buffering. Known issues: ctrl-c (context cancellation) results in the export code getting deadlocked. Duplicate blocks in exports. Duplicate block reads from store. Original commit messages: works works against mainnet and calibnet feat: add internal export api method - will hopfully make things faster by not streaming the export over the json rpc api polish: better file nameing fix: potential race in marking cids as seen chore: improve logging feat: front export with cache fix: give hector a good channel buffer on this shit docsgen
Lotus API
This package contains all lotus API definitions. Interfaces defined here are exposed as JsonRPC 2.0 endpoints by lotus programs.
Versions
| File | Alias File | Interface | Exposed by | Version | HTTP Endpoint | Status | Docs |
|---|---|---|---|---|---|---|---|
api_common.go |
v0api/latest.go |
Common |
lotus; lotus-miner | v0 | /rpc/v0 |
Latest, Stable | Methods |
api_full.go |
v1api/latest.go |
FullNode |
lotus | v1 | /rpc/v1 |
Latest, Work in progress | Methods |
api_storage.go |
v0api/latest.go |
StorageMiner |
lotus-miner | v0 | /rpc/v0 |
Latest, Stable | Methods |
api_worker.go |
v0api/latest.go |
Worker |
lotus-worker | v0 | /rpc/v0 |
Latest, Stable | Methods |
v0api/full.go |
FullNode |
lotus | v0 | /rpc/v0 |
Stable | Methods |