Skip to content
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

Preserve a format of RPC command definitions #14008

Merged

Conversation

Projects
None yet
5 participants
@kostyantyn
Copy link
Contributor

commented Aug 20, 2018

Currently, RPC commands are formatted in a way that it's easy to read
and that test/lint/check-rpc-mappings.py can parse it.

To void breaking test/lint/check-rpc-mappings.py script by running
clang-format, RPC command definitions should be disabled for clang-format.

* @param[in] tx transaction for which we are checking input total
* @return Sum of value of all inputs (scriptSigs)
* @param[in] tx transaction for which we are checking input total
* @return Sum of value of all inputs (scriptSigs)

This comment has been minimized.

Copy link
@kostyantyn

kostyantyn Aug 20, 2018

Author Contributor

for reviewers: I replaced tabs with spaces because if this block is moved, the test/lint/lint-whitespace.sh will fail.

Preserve a format of RPC command definitions
Currently RPC commands are formatted in a way that it's easy to read
and that test/lint/check-rpc-mappings.py can parse it.

To void breaking test/lint/check-rpc-mappings.py script by running
clang-format, RPC command definitions should be disabled for clang-format.

@kostyantyn kostyantyn force-pushed the kostyantyn:preserve_format_of_rpc_command_definitions branch to d9d7957 Aug 20, 2018

@DrahtBot

This comment has been minimized.

Copy link
Contributor

commented Aug 20, 2018

Note to reviewers: This pull request conflicts with the following ones:
  • #14121 (Index for BIP 157 block filters by jimpo)
  • #13932 (Additional utility RPCs for PSBT by achow101)
  • #13152 ([rpc] Add getnodeaddresses RPC command by chris-belcher)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@scravy

scravy approved these changes Aug 21, 2018

@scravy

This comment has been minimized.

Copy link
Contributor

commented Aug 21, 2018

ACK, looks good to me

@laanwj

This comment has been minimized.

Copy link
Member

commented Sep 10, 2018

yes, this makes sense, otherwise clang-format will mess up the tables
utACK d9d7957

@laanwj laanwj merged commit d9d7957 into bitcoin:master Sep 10, 2018

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

laanwj added a commit that referenced this pull request Sep 10, 2018

Merge #14008: Preserve a format of RPC command definitions
d9d7957 Preserve a format of RPC command definitions (Kostiantyn Stepaniuk)

Pull request description:

  Currently, RPC commands are formatted in a way that it's easy to read
  and that `test/lint/check-rpc-mappings.py` can parse it.

  To void breaking `test/lint/check-rpc-mappings.py` script by running
  `clang-format`, RPC command definitions should be disabled for clang-format.

Tree-SHA512: e17d20ec0e6c4e19410198b55687ebbe6fa01654d214d4578cd16c00b872bf8b0b306594a45523685cd2e9d9280702e00471d9366e87954428e8bbeacd8cad60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.