The getblockheader
RPC with its true/false verbosity options returns the same content as getblock
with verbosity 0/1. So this is an opportunity to remove some code very cleanly, as demonstrated here.
I looked for other issues or PRs that suggested this but wasn’t successful, obviously let me know if I missed something.
Just looking for conceptual feedback for now. When that is positive I will first run getblockheader
through a depecation cycle. If it is negative I will suggest some deduplication between the two RPCs instead.