-
Notifications
You must be signed in to change notification settings - Fork 87
TX Submission Logic #4887
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
Open
coot
wants to merge
55
commits into
main
Choose a base branch
from
coot/tx-submission
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
TX Submission Logic #4887
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 tasks
76c0d13
to
11d833b
Compare
This was referenced Sep 18, 2024
772809e
to
374a78a
Compare
374a78a
to
388cc69
Compare
efbc13a
to
7b8ec92
Compare
7b8ec92
to
22c71d5
Compare
22c71d5
to
6a1bdd9
Compare
974b98d
to
a764ad1
Compare
adae14f
to
3258afe
Compare
karknu
reviewed
Mar 14, 2025
ouroboros-network/src/Ouroboros/Network/TxSubmission/Inbound/State.hs
Outdated
Show resolved
Hide resolved
3258afe
to
1d40e61
Compare
Add the time it took to add TXs to the mempool to the TxInboundAddedToMempool tracer.
DeltaQ metrics is only available for our warm and hot peers that also have us as hot. So a fraction of all downstream clients will have a metric. This change the ranking of peers to use simple scoring system. Deliver a new TX before in time before it gets into the block gives you one point. Delivering a TXs thats already in the mempool, is invalid, or fail because it was included in a recent blocks gives you a penalty. Only the peer's that downloaded a TX will attempt to add it to the mempool
It is using a single map lookup instead of two.
We don't need to compute `max 0` twice, since the inputs are always non-negative (e.g. `n ≥ 0`) and thus `drained + n ≥ 0`.
Just to make it more outstanding what the output of `acknowledgeTxIds` is indented for.
Removed `withMempoolSem` and added instead `addTxToMempool`.
Renamed the `EnableNewTxSubmissionProtocol` type to `TxSubmissionLogicVersion` and moved it to `V2.Types`
Export all functions & supporting types.
The flag enables an initial 60s delay on the inbound side in the same way as for in the V1 version.
* `ctrl-<addr>` - the control thread (top level threads, e.g. [2], [3], etc..) * `node-<addr>` - the main node thread ([2,1], [3,1], etc) * `krnl-<addr>` - the kernel thread (block production)
Removed the `TurbulentCommands` generator.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This is a draft PR (work in progress) which introduces
tx-submission
logic responsible for choosing from which peer to download a tx.Checklist
Quality
Maintenance
ouroboros-network
project.