The getblockstats RPC currently overestimates UTXO overhead by treating the fCoinBase bitfield as a separate bool in PER_UTXO_OVERHEAD. However, fCoinBase and nHeight are packed into a single 32-bit integer (both in memory and when serialized) - the extra bool in the overhead calculation is unnecessary.
This PR introduces the following changes across three commits:
- Stores
fCoinBaseas a proper bool to minimize conversions. - Unifies the serialization style for better readability.
- Adjusts UTXO overhead estimation to reflect the actual structure and updates related tests accordingly.