-
Notifications
You must be signed in to change notification settings - Fork 36.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TxDownloadManager followups #31190
TxDownloadManager followups #31190
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -287,7 +287,7 @@ static void CheckInvariants(const node::TxDownloadManagerImpl& txdownload_impl, | |||||||
// We should never have more than the maximum in-flight requests out for a peer. | ||||||||
for (NodeId peer = 0; peer < NUM_PEERS; ++peer) { | ||||||||
if (!HasRelayPermissions(peer)) { | ||||||||
Assert(txdownload_impl.m_txrequest.CountInFlight(peer) <= node::MAX_PEER_TX_REQUEST_IN_FLIGHT); | ||||||||
Assert(txdownload_impl.m_txrequest.Count(peer) <= node::MAX_PEER_TX_ANNOUNCEMENTS); | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. any value in
Suggested change
? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you mean any value in? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. would the suggested change potentially give coverage There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Checking Could be misunderstanding here, but wouldn't |
||||||||
} | ||||||||
} | ||||||||
txdownload_impl.m_txrequest.SanityCheck(); | ||||||||
|
@@ -430,8 +430,9 @@ FUZZ_TARGET(txdownloadman_impl, .init = initialize) | |||||||
} | ||||||||
); | ||||||||
|
||||||||
// Jump ahead in time | ||||||||
time += fuzzed_data_provider.PickValueInArray(TIME_SKIPS); | ||||||||
auto time_skip = fuzzed_data_provider.PickValueInArray(TIME_SKIPS); | ||||||||
if (fuzzed_data_provider.ConsumeBool()) time_skip *= -1; | ||||||||
time += time_skip; | ||||||||
CheckInvariants(txdownload_impl, max_orphan_count); | ||||||||
} | ||||||||
// Disconnect everybody, check that all data structures are empty. | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update comment for the new assert?