Files
bitcoin/src/test/fuzz
MarcoFalke f6013265b7 Merge bitcoin/bitcoin#20295: rpc: getblockfrompeer
dce8c4c381 rpc: getblockfrompeer (Sjors Provoost)
b884ababc2 rpc: move Ensure* helpers to server_util.h (Sjors Provoost)

Pull request description:

  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`).

  Usage:
  ```
  bitcoin-cli getblockfrompeer HASH peer_n
  ```

  Closes #20155

  Limitations:
  * you have to specify which peer to fetch the block from
  * the node must already have the header

ACKs for top commit:
  jnewbery:
    ACK dce8c4c381
  fjahr:
     re-ACK dce8c4c381

Tree-SHA512: 843ba2b7a308f640770d624d0aa3265fdc5c6ea48e8db32269b96a082b7420f7953d1d8d1ef2e6529392c7172dded9d15639fbc9c24e7bfa5cfb79e13a5498c8
2021-12-08 10:39:37 +01:00
..
2021-11-29 17:59:44 -05:00
2021-03-15 17:26:35 -07:00
2021-03-11 13:45:14 +08:00
2021-11-16 19:18:05 +01:00
2021-09-22 10:39:08 +02:00
2021-04-09 13:17:37 +02:00
2021-12-07 18:56:29 -03:00
2021-11-01 12:25:29 +01:00
2021-11-01 12:25:29 +01:00