Skip to content

Commit b29985d

Browse files
committed
Bitswap sessions section added.
License: MIT Signed-off-by: David Grisham <[email protected]>
1 parent a8fb19f commit b29985d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitswap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ When a message queue that already contains a Bitswap message receives another, t
125125

126126
## Bitswap Sessions
127127

128-
**TODO**
128+
Bitswap sessions are an attempt to optimize the block requests sent to other Bitswap clients. When requesting a graph of blocks from the network, we send a wantlist update containing the graph’s root block to all of our peers. Then, for each peer who sends the root block back, we add that peer to the graph’s *active set*. We then send all requests for other nodes in the graph only to the peers in the active set. The idea is that peers who have the root node of a graph are likely to have its children as well, while those who do not have the root are unlikely to have its children.
129129

130130
**TODO**: Everything below must either be updated/integrated above, or removed
131131

0 commit comments

Comments
 (0)