Skip to content

TX Submission Logic#4887

Merged
coot merged 74 commits intomainfrom
coot/tx-submission
Aug 7, 2025
Merged

TX Submission Logic#4887
coot merged 74 commits intomainfrom
coot/tx-submission

Conversation

@coot
Copy link
Collaborator

@coot coot commented Jun 4, 2024

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

  • Commit sequence makes sense and have useful messages, see ref.
  • New tests are added and existing tests are updated.
  • Self-reviewed the PR.

Maintenance

  • Linked an issue or added the PR to the current sprint of ouroboros-network project.
  • Added labels.
  • Updated changelog files.
  • The documentation has been properly updated, see ref.

@coot coot added the tx-submission Issues related to tx-submission protocol label Jun 4, 2024
@coot coot linked an issue Jun 4, 2024 that may be closed by this pull request
3 tasks
@coot coot force-pushed the coot/tx-submission branch from fa5c3bd to e5bf5f5 Compare June 4, 2024 08:07
@coot coot force-pushed the coot/tx-submission branch from e5bf5f5 to 3aaa2b8 Compare July 19, 2024 09:46
@coot coot force-pushed the coot/tx-submission branch from 3aaa2b8 to 992a7de Compare July 30, 2024 07:47
@coot coot force-pushed the coot/tx-submission branch 6 times, most recently from 76c0d13 to 11d833b Compare September 18, 2024 11:26
@crocodile-dentist crocodile-dentist force-pushed the coot/tx-submission branch 2 times, most recently from 772809e to 374a78a Compare September 23, 2024 12:37
@coot coot force-pushed the coot/tx-submission branch from 374a78a to 388cc69 Compare September 23, 2024 12:45
@coot coot force-pushed the coot/tx-submission branch from efbc13a to 7b8ec92 Compare October 9, 2024 16:07
@coot coot force-pushed the coot/tx-submission branch from 7b8ec92 to 22c71d5 Compare November 12, 2024 06:13
@coot coot force-pushed the coot/tx-submission branch from 22c71d5 to 6a1bdd9 Compare February 6, 2025 10:40
@coot coot force-pushed the coot/tx-submission branch 2 times, most recently from 974b98d to a764ad1 Compare March 3, 2025 16:03
@coot coot self-assigned this Mar 7, 2025
@coot coot force-pushed the coot/tx-submission branch 6 times, most recently from adae14f to 3258afe Compare March 14, 2025 13:59
@coot coot force-pushed the coot/tx-submission branch from 3258afe to 1d40e61 Compare March 14, 2025 18:34
coot added 30 commits August 7, 2025 15:28
* `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.
When we are acknowledging txs we also choose tx-s to be submitted to the
mempool.  We shouldn't disregard all acknowledged tx-s when we find
a first buffered one, instead we can ignore them since they were already
successfully submitted to the mempool.
When there's nothing to acknowledge, we return `TxsToMempool`, thus we
also should update the `toMempoolTxs` field.
All other fields are strict.
* send `getTxAdvSize` rather than `getTxSize` together with `getTxId`;
* fixed properties in presence of wrongly sized txs, the conditions are
  much weeker; hance
* generate much less wrongly sized txs.
* Fixed Show instance for TestAddress:
  Deriving via Quiet produces a string which is not syntactivly valid
  Haskell
* Show instance for `NodeArgs`: added brackes where needed.
* Imports which work when pasting examples (still some imports
  need to be added).  Using `-Wno-unused-imports` though.
* removed `numTxIdsToRequest` (not used & wrong)
* replaced repeated code with a new function `splitAcknowledgedTxIds`
* added test for `splitAcknowledgedTxIds`
Pass requested txids with sizes to the `collectTxs` call.
The property is only satisfied if there are no transaction which
advertise wrong size.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tx-submission Issues related to tx-submission protocol

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

tx-submission decision logic for the inbound side

5 participants