mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-02 13:33:10 +00:00
Removed modules: - sales (including reservations, slot queue, marketplace abstractions, state machines, etc) - purchasing - erasure coding - contract interactions - prover - slot builder - block exchange payments - sales/purchasing from REST api - removed persistence command and all config params from cli configuration - CI workflows (devnet, dist tests, cirdl build, start eth node, contracts version reporting) - unused modules from tests - marketplace integration tests, and starting provider/validator/hardhat nodes - unused manifest properties - integration tests using the above # Conflicts: # .github/workflows/ci-reusable.yml # .github/workflows/docker.yml # build.nims # codex/blockexchange/engine/payments.nim # codex/codex.nim # codex/conf.nim # codex/contracts/Readme.md # codex/erasure.nim # codex/erasure/backend.nim # codex/erasure/backends/leopard.nim # codex/erasure/erasure.nim # codex/rest/api.nim # codex/sales.nim # codex/sales/reservations.nim # codex/sales/states/filled.nim # codex/sales/states/preparing.nim # codex/sales/states/provingsimulated.nim # codex/slots/builder/builder.nim # codex/slots/converters.nim # codex/slots/proofs/backends/circomcompat.nim # codex/slots/proofs/backends/converters.nim # codex/slots/proofs/prover.nim # codex/slots/sampler/sampler.nim # codex/slots/sampler/utils.nim # codex/slots/types.nim # tests/integration/5_minutes/testrestapivalidation.nim # tests/integration/hardhatprocess.nim # tests/integration/multinodes.nim # tools/cirdl/cirdl.nim
48 lines
1.2 KiB
Protocol Buffer
48 lines
1.2 KiB
Protocol Buffer
// Protocol of data exchange between Logos Storage nodes.
|
|
// Extended version of https://github.com/ipfs/specs/blob/main/BITSWAP.md
|
|
|
|
syntax = "proto3";
|
|
|
|
package blockexc.message.pb;
|
|
|
|
message Message {
|
|
|
|
message Wantlist {
|
|
enum WantType {
|
|
wantBlock = 0;
|
|
wantHave = 1;
|
|
}
|
|
|
|
message Entry {
|
|
bytes block = 1; // the block cid
|
|
int32 priority = 2; // the priority (normalized). default to 1
|
|
bool cancel = 3; // whether this revokes an entry
|
|
WantType wantType = 4; // Note: defaults to enum 0, ie Block
|
|
bool sendDontHave = 5; // Note: defaults to false
|
|
}
|
|
|
|
repeated Entry entries = 1; // a list of wantlist entries
|
|
bool full = 2; // whether this is the full wantlist. default to false
|
|
}
|
|
|
|
message Block {
|
|
bytes prefix = 1; // CID prefix (cid version, multicodec and multihash prefix (type + length)
|
|
bytes data = 2;
|
|
}
|
|
|
|
enum BlockPresenceType {
|
|
presenceHave = 0;
|
|
presenceDontHave = 1;
|
|
}
|
|
|
|
message BlockPresence {
|
|
bytes cid = 1;
|
|
BlockPresenceType type = 2;
|
|
}
|
|
|
|
Wantlist wantlist = 1;
|
|
repeated Block payload = 3; // what happened to 2?
|
|
repeated BlockPresence blockPresences = 4;
|
|
int32 pendingBytes = 5;
|
|
}
|