cardano-rpc
Safe HaskellNone
LanguageHaskell2010

Cardano.Rpc.Server.Internal.UtxoRpc.Type.EraSummary

Description

Conversion of the node's hard-fork era summary to the UTxO RPC EraSummaries message.

Synopsis

Documentation

eraSummariesToProto :: SystemStart -> Summary (CardanoEras StandardCrypto) -> Proto EraSummaries Source #

Convert the node's hard-fork era summary to the UTxO RPC EraSummaries message.

Every era except the last gets its maybe''end populated from the confirmed era transition. The last era's end is always left unset, even when consensus already supplies a bound for it: consensus cannot distinguish a confirmed transition from the safe-zone forecast horizon, so the spec's "if the era has a well-defined ending" only ever holds for non-final eras here. EraUnbounded likewise maps to unset.

protocolParams is left unset for every era: the node does not keep historical per-era protocol parameters. Use ReadParams for the current era's parameters.