Skip to content

rpc: improve submitpackage documentation and other improvements - #29292

Merged
achow101 merged 4 commits into
bitcoin:masterfrom
stickies-v:2024-01/patch-submitpackage-docs
May 8, 2024
Merged

achow101 merged 4 commits into
bitcoin:masterfrom
stickies-v:2024-01/patch-submitpackage-docs

Conversation

@stickies-v

Copy link
Copy Markdown
Contributor

submitpackage requires the package to be topologically sorted with the child being the last element in the array, but this is not documented in the RPC method or the error messages.

Also sneaking in some other minor improvements that I found while going through the code:

  • Informing the user that package needs to be an array of length between 1 and MAX_PACKAGE_COUNT is confusing when IsChildWithPackage() requires that the package size >= 2. Remove this check to avoid code duplication and sending a confusing error message.
  • fixups to the submitpackage examples

@DrahtBot

DrahtBot commented Jan 22, 2024 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK fjahr, instagibbs, glozow, achow101

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@stickies-v
stickies-v force-pushed the 2024-01/patch-submitpackage-docs branch from 34b5d5c to 7e8d359 Compare January 22, 2024 20:40
Comment thread src/rpc/mempool.cpp Resolved
@stickies-v
stickies-v force-pushed the 2024-01/patch-submitpackage-docs branch from 7e8d359 to a77dc1b Compare January 23, 2024 10:29
Comment thread src/rpc/mempool.cpp Resolved
@stickies-v
stickies-v force-pushed the 2024-01/patch-submitpackage-docs branch from a77dc1b to b2fb55c Compare January 25, 2024 12:16
Comment thread src/rpc/mempool.cpp Resolved
Comment thread src/rpc/mempool.cpp Resolved
@stickies-v
stickies-v force-pushed the 2024-01/patch-submitpackage-docs branch from b2fb55c to 5a7a720 Compare February 10, 2024 10:00
@stickies-v

stickies-v commented Feb 10, 2024 •

Copy link
Copy Markdown
Contributor Author

Rebased to master to make CI green, no changes otherwise. Thanks for the review @glozow, addressed all comments.

@fjahr fjahr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 5a7a7208554d09bd0a0bb8de9d4d94ed4146e739

This is ok to merge as is but if you decide to address 9deb910#r1476296848 I will quickly re-review.

Comment thread src/rpc/mempool.cpp Resolved
Comment thread test/functional/rpc_packages.py Resolved
@stickies-v
stickies-v force-pushed the 2024-01/patch-submitpackage-docs branch from 5a7a720 to 311f523 Compare March 1, 2024 08:59
@stickies-v

Copy link
Copy Markdown
Contributor Author

Force pushed to incorporate the approach suggested in #29292 (comment)

Apologies for the slow follow-up while I was on holidays, thank you for the review!

@fanquake
fanquake requested review from fjahr and instagibbs May 6, 2024 01:16
@fjahr

fjahr commented May 6, 2024

Copy link
Copy Markdown
Contributor

re-ACK 311f52371f37123f1f6186ac818db0741f643aed

Apologies for even slower re-review :)

Comment thread test/functional/rpc_packages.py Resolved
Comment thread src/rpc/mempool.cpp Resolved
@stickies-v
stickies-v force-pushed the 2024-01/patch-submitpackage-docs branch from 311f523 to 78e52f6 Compare May 6, 2024 23:24
@stickies-v

Copy link
Copy Markdown
Contributor Author

Force pushed to address @instagibbs's review, only very minor changes.

@fjahr

fjahr commented May 7, 2024

Copy link
Copy Markdown
Contributor

@instagibbs

Copy link
Copy Markdown
Member

ACK 78e52f6

only the suggested changes, verified via git range-diff master 311f523 78e52f6

@glozow glozow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 78e52f6

@achow101

achow101 commented May 8, 2024

Copy link
Copy Markdown
Member

ACK 78e52f6

@achow101
achow101 merged commit 4300325 into bitcoin:master May 8, 2024
@stickies-v
stickies-v deleted the 2024-01/patch-submitpackage-docs branch May 8, 2024 22:40
@bitcoin bitcoin locked and limited conversation to collaborators May 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants