mirror of
https://github.com/logos-storage/bittorrent-codex-docs.git
synced 2026-01-04 05:53:08 +00:00
793 B
793 B
| tags | related | ||
|---|---|---|---|
|
|
#codex/peer-presence
| related | Codex Peer Context Records |
|---|---|
Remote peer's Presence records are added to the remote peer context object (BlockExcPeerCtx) in one place only: BlockExcEngine.blockPresenceHandler. |
We remove the records in BlockExcEngine.blockPresenceHandler (as part of filtering out irrelevant records), when canceling blocks (in response to receiving new block deliveries), and in the BlockExcEngine.blockPresenceHandler itself.
[!question] isn't the last one (calling
cleanPresenceinBlockExcEngine.blockPresenceHandler) a duplicate ofresolveBlockswhich callscancelBlocks, which also callscleanPresence).`