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-19 12:41:47 +01:00
2021-03-16 19:52:37 +01:00
2021-11-29 17:59:44 -05:00
2021-11-12 19:51:55 +00:00
2021-11-19 12:41:47 +01:00
2021-06-18 23:13:07 +00:00
2021-03-15 17:26:35 -07:00
2021-08-20 15:45:15 +02:00
2021-11-12 19:51:55 +00:00
2021-11-12 19:51:55 +00:00
2021-11-12 19:51:55 +00:00
2021-11-16 08:20:33 +01:00
2021-12-02 15:24:55 +01:00
2021-11-12 19:51:55 +00:00
2021-11-12 19:51:55 +00:00
2021-11-12 19:51:55 +00:00
2021-11-12 19:51:55 +00:00
2021-11-12 19:51:55 +00:00
2021-08-21 19:25:33 +02:00
2021-11-12 19:51:55 +00:00
2021-03-11 13:45:14 +08:00
2021-11-19 12:41:47 +01:00
2021-03-11 13:45:14 +08:00
2021-09-30 07:41:57 +08:00
2021-11-12 19:51:55 +00:00
2021-06-07 13:41:14 +02:00
2021-05-21 19:41:43 +00:00
2021-08-21 19:25:33 +02:00
2021-03-09 12:56:44 +01:00
2021-12-06 16:18:14 -05:00
2021-05-24 10:29:58 +02:00
2021-09-30 07:41:57 +08:00
2021-07-04 21:30:50 +02:00
2021-03-11 13:45:14 +08:00
2021-08-04 19:20:32 +08:00
2021-06-13 09:43:54 +02:00
2021-09-30 14:21:17 +00:00
2021-11-12 19:51:55 +00:00
2021-11-16 19:18:05 +01:00
2021-09-22 10:39:08 +02:00
2021-07-27 14:53:24 +03:00
2021-05-12 16:13:30 +02:00
2021-11-12 19:51:55 +00:00
2021-06-04 16:12:04 +02:00
2021-11-12 19:51:55 +00:00
2021-11-19 12:41:47 +01:00
2021-08-19 18:20:12 +01:00
2021-05-09 10:04:01 +02:00
2021-10-04 15:06:37 +02:00
2021-03-11 13:45:14 +08:00
2021-03-03 09:17:37 +01:00
2021-11-19 12:41:47 +01:00
2021-11-12 19:51:55 +00:00
2021-08-21 19:25:33 +02:00
2021-11-19 12:41:47 +01:00
2021-11-19 12:41:47 +01:00
2021-04-09 13:17:37 +02:00
2021-11-12 19:51:55 +00:00
2021-10-05 11:10:37 +02:00
2021-12-08 10:39:37 +01:00
2021-12-06 16:18:14 -05:00
2021-11-12 19:51:55 +00:00
2021-09-30 07:41:57 +08:00
2021-11-12 19:51:55 +00:00
2021-11-12 19:51:55 +00:00
2021-11-19 12:41:47 +01:00
2021-11-12 19:51:55 +00:00
2021-11-01 12:25:29 +01:00
2021-03-03 09:17:37 +01:00
2021-03-16 19:52:37 +01:00
2021-09-30 14:21:17 +00:00
2021-05-09 10:25:21 +02:00
2021-09-29 13:24:14 +02:00
2021-05-11 08:54:24 +02:00
2021-11-12 19:51:55 +00:00
2021-12-01 18:44:54 +08:00
2021-12-07 18:56:29 -03:00
2021-10-22 12:32:16 +02:00
2021-11-01 12:25:29 +01:00
2021-11-01 12:25:29 +01:00
2021-12-03 10:44:37 +01:00
2021-06-10 15:04:39 -04:00
2021-11-12 19:51:55 +00:00