-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
1,989 additions
and
1,514 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
┌────────────────────────────────────────────────────────────────────────────┐ | ||
│ Bitswap API │ | ||
└────────────────────────────────────────────────────────────────────────────┘ | ||
│ ▲ | ||
│register wants │yields the | ||
│and unwants │received | ||
│ │blocks | ||
│ │ | ||
│ send block to other nodes┌───────────────────────────┐ | ||
│ by adding them to their │ Decision Engine │ | ||
│ buckets │ │ | ||
│ ┌─────────◀├ ─ ─ ─ │ | ||
│ │ │Ledger│ │ | ||
│ │ └───────────────────────────┘ | ||
│ │ ▲ | ||
▼ │ │ | ||
┌────────────────────┐ │ │ | ||
│ │ │ │ | ||
│ Want Manager │ │ │ | ||
│ │ │ │ | ||
├───────────┬──┬─────┘ │ │ | ||
│my wantlist│ │ │ │ | ||
└───────────┘ │update wantlist │ │ | ||
│messages │ receive a block │ | ||
└─────┬───────┬───────┤ │ | ||
│ │ │ │ | ||
▼ ▼ ▼ │ | ||
┌───────┬───────┬───────┐ │ | ||
│Message│Message│... │ │ | ||
│Queue/ │Queue/ │ │ │ | ||
│peer │peer │ │ │ | ||
└───────┴───────┴───────┘ │ | ||
│ │ │ │ | ||
│ │ │ │ | ||
│ │ │ │ | ||
└───────┴───────┴─┐ │ | ||
│ │ | ||
│ │ | ||
▼ │ | ||
┌────────────────────────────────────────┐ | ||
│ Network │ | ||
└────────────────────────────────────────┘ | ||
│ ▲ │ ▲ | ||
▼ │ │ │ | ||
┌─────────┐ ▼ │ | ||
│Transform│ /ipfs/bitswap/1.1.0 | ||
└─────────┘ | ||
│ ▲ | ||
▼ │ | ||
/ipfs/bitswap/1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.