doc: Add missing optional to getblockfrompeer#23702
Merged
maflcko merged 1 commit intobitcoin:masterfrom Dec 8, 2021
Merged
Conversation
Member
Author
|
Needed for #23083 |
Merged
Member
|
utACK aaaa34e |
jonatack
reviewed
Dec 8, 2021
Member
jonatack
left a comment
There was a problem hiding this comment.
Post-merge ACK, one nit for any follow-ups.
| "getblockfrompeer", | ||
| "\nAttempt to fetch block from a given peer.\n" | ||
| "\nWe must have the header for this block, e.g. using submitheader.\n" | ||
| "\nReturns {} if a block-request was successfully scheduled\n", |
Member
There was a problem hiding this comment.
- "\nReturns {} if a block-request was successfully scheduled\n",
+ "\nReturns {} if a block-request was successfully scheduled.\n",
Member
Author
There was a problem hiding this comment.
The trailing newline isn't needed either. Whitespace will be normalized by the doc generator.
Member
There was a problem hiding this comment.
I added the . in #23706, but I was not able to drop the trailing \n without messing up the formatting of bitcoin-cli help getblockfrompeer.
Member
Author
There was a problem hiding this comment.
Sorry, I never implemented this. Done in #23714
sidhujag
pushed a commit
to syscoin/syscoin
that referenced
this pull request
Dec 8, 2021
aaaa34e doc: Add missing optional to getblockfrompeer (MarcoFalke) Pull request description: Can be reviewed with `--word-diff-regex=. --ignore-all-space` ACKs for top commit: Sjors: utACK aaaa34e Tree-SHA512: 7f46c82a46b8cc19f7eb549b9aa13be8cd6849a8ef8a2ddda6d1eee6978d099fccadd29a2bf817f44d601b905f5d5f6b5d8f4f54be5ee8b914b520359c058e68
luke-jr
pushed a commit
to bitcoinknots/bitcoin
that referenced
this pull request
Dec 14, 2021
Github-Pull: bitcoin#23702 Rebased-From: aaaa34e
RandyMcMillan
pushed a commit
to RandyMcMillan/mempool-tab
that referenced
this pull request
Dec 23, 2021
…mpeer cd289f3 doc: Add missing optional to getblockfrompeer (MarcoFalke) Pull request description: Can be reviewed with `--word-diff-regex=. --ignore-all-space` ACKs for top commit: Sjors: utACK cd289f3 Tree-SHA512: 7f46c82a46b8cc19f7eb549b9aa13be8cd6849a8ef8a2ddda6d1eee6978d099fccadd29a2bf817f44d601b905f5d5f6b5d8f4f54be5ee8b914b520359c058e68
Fabcien
pushed a commit
to Bitcoin-ABC/bitcoin-abc
that referenced
this pull request
Dec 3, 2022
Summary: This adds an RPC method to fetch a block directly from a peer. This can used to fetch stale blocks with lower proof of work that are normally ignored by the node (`headers-only` in `getchaintips`). Limitations: - you have to specify which peer to fetch the block from - the node must already have the header Co-authored-by: John Newbery <john@johnnewbery.com> This is a backport of [[bitcoin/bitcoin#20295 | core#20295]], [[bitcoin/bitcoin#23702 | core#23702]] and [[bitcoin/bitcoin#23706 | core#23706]] (partial) bitcoin/bitcoin@dce8c4c bitcoin/bitcoin@aaaa34e bitcoin/bitcoin@bfbf91d bitcoin/bitcoin@809d66b bitcoin/bitcoin@0e3d7c5 The main commit is the first one. The other commits are minor style & comments improvements, and one commit removing an unnecessary argument in the newly added `FetchBlock` function. Test Plan: `ninja all check-all` Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Subscribers: Fabien Differential Revision: https://reviews.bitcoinabc.org/D12716
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Can be reviewed with
--word-diff-regex=. --ignore-all-space