MarcoFalke
e2371f842f
Merge #14802 : rpc: faster getblockstats using BlockUndo data
...
d20d756752 rpc: faster getblockstats using BlockUndo data (Felix Weis)
Pull request description:
Using undo data for a block (rev?????.dat) we can retrieve value information about prevouts and calculate the final transaction fee (rate). This approach is about 80x faster, drops the requirement for `-txindex`, and works for all non-pruned blocks.
```
# 2018-11-25T16:36:19Z Bitcoin Core version v0.17.99.0-edc715240-dirty (release build)
seq 550100 550200 0.00s user 0.00s system 62% cpu 0.004 total
xargs -n1 src/bitcoin-cli getblockstats 0.21s user 0.19s system 17% cpu 2.302 total
# 2018-11-25T16:39:17Z Bitcoin Core version v0.17.0 (release build)
seq 550100 550200 0.00s user 0.00s system 87% cpu 0.002 total
xargs -n1 src/bitcoin-cli getblockstats 0.24s user 0.22s system 0% cpu 3:19.42 total
```
ACKs for commit d20d75:
MarcoFalke:
re-utACK d20d7567528e216badb8475df298bb3cec008985
Tree-SHA512: 5babc3eb8d2fee2cb23dc12f522656b80737a540cbf2b13390a8f388304c46c064cca76f896b46a6e2abae8cc582d28e1ab20dd4bb17ad6142f20630c2d30c54
2019-05-10 13:20:48 -04:00
..
2019-05-10 09:26:23 +02:00
2019-03-05 11:19:32 +01:00
2019-05-02 15:30:58 -04:00
2019-05-10 09:26:23 +02:00
2019-05-03 15:02:54 -04:00
2019-05-03 15:02:54 -04:00
2019-01-26 12:45:48 -05:00
2019-04-09 17:53:08 -04:00
2019-05-03 15:02:54 -04:00
2019-04-25 14:15:43 -04:00
2019-05-09 18:54:43 +02:00
2019-05-10 13:20:48 -04:00
2019-05-09 18:54:43 +02:00
2019-01-23 16:28:27 +08:00
2019-05-10 09:26:23 +02:00
2018-09-07 08:21:14 -04:00
2019-05-02 08:43:57 -04:00
2019-05-10 08:09:44 -04:00
2019-01-25 14:16:07 -05:00
2019-01-16 13:54:18 -05:00
2019-01-16 13:54:18 -05:00
2019-03-01 16:15:50 -05:00
2019-02-27 16:53:44 -05:00
2018-12-29 10:15:01 +01:00
2018-11-04 22:46:07 -08:00
2018-12-04 19:55:04 +02:00
2018-11-05 17:03:11 +01:00
2019-01-22 21:10:48 +00:00
2019-01-22 21:10:48 +00:00
2018-11-04 22:46:07 -08:00
2018-11-05 17:03:11 +01:00
2018-08-27 18:19:33 +02:00
2019-03-11 10:28:42 -04:00
2019-04-29 10:15:23 -04:00
2019-01-30 16:26:52 -05:00
2019-02-06 14:16:43 -05:00
2019-04-29 13:42:25 -04:00
2019-05-02 15:14:12 -04:00
2018-11-13 12:41:41 -08:00
2019-04-06 12:10:55 -07:00
2019-04-06 12:10:55 -07:00
2018-08-25 17:41:00 +02:00
2018-08-13 01:24:55 +02:00
2019-03-27 18:29:48 -04:00
2019-03-27 18:29:48 -04:00
2019-02-17 03:38:08 +00:00
2018-10-07 13:11:36 +01:00
2018-11-04 22:46:07 -08:00
2018-07-27 07:15:02 -04:00
2018-08-13 13:57:15 +02:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2018-11-05 09:25:15 -08:00
2019-04-26 13:09:30 -04:00
2019-01-23 16:28:27 +08:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2019-03-26 17:38:00 -07:00
2018-07-27 07:15:02 -04:00
2019-03-26 17:38:00 -07:00
2018-11-04 22:46:07 -08:00
2018-08-27 18:19:33 +02:00
2019-04-30 10:05:54 +03:00
2018-11-04 22:46:07 -08:00
2019-04-28 04:42:38 +00:00
2019-02-22 17:38:45 -08:00
2019-02-22 17:38:45 -08:00
2019-04-10 12:16:52 +01:00
2019-04-30 10:05:54 +03:00
2018-11-05 09:25:15 -08:00
2018-11-30 18:48:58 +01:00
2018-11-04 22:46:07 -08:00
2018-08-11 09:34:47 +03:00
2019-04-29 13:42:25 -04:00
2019-04-09 17:53:08 -04:00
2019-05-08 15:59:42 -04:00
2018-11-06 11:44:40 -04:00
2019-04-29 10:15:23 -04:00
2018-07-27 07:15:02 -04:00
2019-01-31 15:00:56 +00:00
2018-09-13 10:36:41 -07:00
2019-04-29 10:15:23 -04:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2019-04-29 13:49:15 -04:00
2019-04-29 13:49:15 -04:00
2019-04-30 15:26:01 -04:00
2019-05-10 09:26:23 +02:00
2019-01-26 09:28:48 +08:00
2019-05-02 12:18:18 +00:00
2019-04-11 10:12:36 -04:00
2019-04-29 13:43:01 -04:00
2018-07-27 07:15:02 -04:00
2019-01-10 01:58:33 +01:00
2018-07-27 07:15:02 -04:00
2019-05-03 15:02:54 -04:00
2019-02-12 11:34:57 -05:00
2019-05-07 11:51:30 -04:00
2019-01-16 13:54:18 -05:00
2019-03-23 11:32:40 -04:00
2019-04-04 16:45:23 -04:00
2019-04-10 11:48:47 -04:00
2019-04-10 11:48:47 -04:00
2019-01-24 15:58:49 -08:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2018-11-04 22:46:07 -08:00
2018-12-29 10:15:01 +01:00
2019-01-30 22:44:28 +02:00
2019-04-29 10:15:23 -04:00
2018-11-05 17:03:11 +01:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2019-05-06 15:32:24 -04:00
2018-11-04 22:46:07 -08:00
2019-01-05 16:16:37 +01:00
2019-05-02 15:08:22 +02:00
2019-04-09 17:53:08 -04:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2019-05-03 20:31:18 +02:00
2019-05-03 20:31:18 +02:00
2019-05-03 15:02:54 -04:00
2018-07-24 20:46:23 +01:00
2019-01-16 16:34:56 -08:00
2019-02-10 17:17:32 -05:00
2019-04-06 12:03:21 -07:00
2018-06-25 00:08:49 -04:00
2018-06-25 00:08:49 -04:00
2018-07-27 11:52:18 -07:00
2019-01-25 12:32:37 -08:00
2019-04-29 13:51:59 -04:00
2019-04-20 08:13:34 -04:00
2018-08-31 16:00:38 +02:00
2018-12-29 10:15:01 +01:00
2018-11-06 11:44:40 -04:00
2018-11-04 22:46:07 -08:00
2018-07-27 07:15:02 -04:00
2019-01-13 22:50:36 -08:00
2018-07-27 07:15:02 -04:00
2018-11-04 22:46:07 -08:00
2019-04-06 12:10:55 -07:00
2019-05-01 10:06:15 -04:00
2019-05-03 15:02:54 -04:00
2019-04-23 13:03:41 -04:00
2019-04-23 13:03:41 -04:00
2019-01-10 02:51:14 +01:00
2018-09-18 14:27:05 +09:00
2018-11-05 09:25:15 -08:00
2019-05-08 09:19:41 -04:00
2019-05-08 09:19:41 -04:00
2019-04-09 10:38:13 -04:00
2019-04-10 11:44:40 -04:00
2018-07-27 07:15:02 -04:00
2018-09-23 22:55:11 +02:00
2018-09-23 22:55:11 +02:00
2018-09-23 22:55:11 +02:00
2018-09-23 22:55:11 +02:00
2018-11-06 11:44:40 -04:00
2018-11-04 22:46:07 -08:00
2018-08-08 13:55:27 +02:00