Closed jaspervdm closed 5 years ago
API has previous
on the header.
See #1836 (we decided not to remove it after all).
without having to maintain their own MMR.
@ignopeverell pointed out this is desirable for clients receiving headers and blocks via broadcast on the network, not just api clients.
After a testnet4 hardfork (or later), block headers will no longer contain a
previous
hash, and instead onlyprev_root
(see https://github.com/mimblewimble/grin/issues/1726). It would be convenient if the HTTP API for blocks either still containprevious
, or alternativelyroot
(or both) since that would allow services running on top of a Grin node to easily make the link to the previous block, without having to maintain their own MMR.Related discussion on Gitter: