Issue Details

Number
27652
Title
Allow getblockfrompeer to use any peer
Description
### Please describe the feature you'd like to see added. When you use `getblockfrompeer` you have to specify an index of a specific peer. But it would be much easier if it allowed you to use ANY peer. For example, if you run a pruned node, and your first peer happens to be also pruned, the call will fail. If the call tried all nodes, until it finds a peer that has the block, it wouldn't require you that implement any logic for that. ### Is your feature related to a problem, if so please describe it. _No response_ ### Describe the solution you'd like The solution would be simple: if you don't specify any index, then try all peers untill you find one that does have block, otherwise fail. ### Describe any alternatives you've considered _No response_ ### Please leave any additional context _No response_
URL
https://github.com/bitcoin/bitcoin/issue/27652
Closed by
Back to List