Open n1tranquilla opened 3 months ago
https://github.com/Granola-Team/mina-block-explorer/pull/949/files
This PR could have been one or two lines of code if the summary endpoint was used. If this pattern continues of placing stats in other endpoints, we can expect each new state to require 50+ lines of code instead of a single one or two.
While the stat of
unique block producers in last x blocks
is related to blocks, it is awkwardly located within the blocks query. It might be more suitably located in the summary endpoint, as it is a stat on blocks as a whole.