-
Notifications
You must be signed in to change notification settings - Fork 86
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
More intelligent transaction requests #1749
Conversation
569abc0
to
8cd528b
Compare
I rebased my wip branch onto commit 8cd528b, and I no longer see the huge number of transactions. Great! |
ouroboros-network/src/Ouroboros/Network/TxSubmission/Inbound.hs
Outdated
Show resolved
Hide resolved
requestedTxIdsInFlight = requestedTxIdsInFlight st - reqNo, | ||
unacknowledgedTxIds = unacknowledgedTxIds st | ||
<> Seq.fromList (map fst txids), | ||
availableTxids = availableTxids st | ||
<> Map.fromList txids | ||
} | ||
mpSnapshot <- atomically mempoolGetSnapshot | ||
serverIdle n (acknowledgeTxIdsInMempool st' mpSnapshot) |
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.
I'm sure you and @dcoutts have discussed this already, but just checking again: is this the right and only place to look at the Mempool?
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.
ouroboros-consensus/src/Ouroboros/Consensus/MiniProtocol/LocalTxSubmission/Server.hs
Outdated
Show resolved
Hide resolved
Co-authored-by: Thomas Winant <[email protected]>
8cd528b
to
8373478
Compare
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.
LGTM
bors r+ |
Closes #1161.
Implements the new plan.