Skip to content

Commit

Permalink
Update SendFetchRequest trace
Browse files Browse the repository at this point in the history
The incomming and outgoing G (RTT) can decide if we attempt to fetch a
given block from a peer. Adding PeerGSV to SendFetchRequest lets us
track G for not only the first node we downloaded a block from, but for
all other download attempts we initiated for that block.
  • Loading branch information
karknu committed Nov 20, 2022
1 parent a376bb2 commit 5f7b7fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -186,7 +186,7 @@ blockFetchClient _version controlMessageSTM reportFetched
Right lower = AF.last fragment
Right upper = AF.head fragment

traceWith tracer (SendFetchRequest fragment)
traceWith tracer (SendFetchRequest fragment gsvs)
return $
SenderPipeline
(ClientAgency TokIdle)
Expand Down
Expand Up @@ -383,6 +383,7 @@ data TraceFetchClientState header =
-- over the wire.
| SendFetchRequest
(AnchoredFragment header)
PeerGSV

-- | Mark the start of receiving a streaming batch of blocks. This will
-- be followed by one or more 'CompletedBlockFetch' and a final
Expand Down

0 comments on commit 5f7b7fc

Please sign in to comment.