mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-27 13:27:50 +08:00
Move go-ipfs/bitswap package to go-ipfs/exchange/bitswap * Delineates the difference between the generic exchange interface and implementations (eg. BitSwap protocol) Thus, the bitswap protocol can be refined without having to overthink how future exchanges will work. Aspects common to BitSwap and other exchanges can be extracted out to the exchange package in piecemeal. Future exchange implementations can be placed in sibling packages next to exchange/bitswap. (eg. exchange/multilateral)
7 lines
99 B
Protocol Buffer
7 lines
99 B
Protocol Buffer
package message;
|
|
|
|
message PBMessage {
|
|
repeated string wantlist = 1;
|
|
repeated bytes blocks = 2;
|
|
}
|