This change is progress towards #18771 . It adapts the fee calculation part of #16083 and addresses some feedback. The additional “verbosity level 3” features are planned for a future PR.
Original PR description:
Using block undo data (like in #14802) we can now show fee information for each transaction in a block without the need for additional -txindex and/or a ton of costly lookups. For a start we’ll add transaction fee information to getblock verbosity level 2. This comes at a negligible speed penalty (<1%).