aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-05-10 13:20:41 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-05-10 13:20:48 -0400
commite2371f842fb9fc1ec35ea9a87a335ed0ba499aa1 (patch)
tree932a4264fb5ca28f34c30928481e25bf8364366c /doc
parent14959753a424f04be118630f691ecab9b0df7e9e (diff)
parentd20d7567528e216badb8475df298bb3cec008985 (diff)
downloadbitcoin-e2371f842fb9fc1ec35ea9a87a335ed0ba499aa1.tar.xz
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
Diffstat (limited to 'doc')
-rw-r--r--doc/release-notes-14802.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/release-notes-14802.md b/doc/release-notes-14802.md
new file mode 100644
index 0000000000..1fcc38866a
--- /dev/null
+++ b/doc/release-notes-14802.md
@@ -0,0 +1,3 @@
+RPC changes
+-----------
+The `getblockstats` RPC is faster for fee calculation by using BlockUndo data. Also, `-txindex` is no longer required and `getblockstats` works for all non-pruned blocks.