From d20d7567528e216badb8475df298bb3cec008985 Mon Sep 17 00:00:00 2001 From: Felix Weis Date: Fri, 10 May 2019 08:21:52 -0400 Subject: rpc: faster getblockstats using BlockUndo data 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. --- doc/release-notes-14802.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 doc/release-notes-14802.md (limited to 'doc') 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. -- cgit v1.2.3