Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockMeta ¶
type BlockMeta struct {
// Header is the CometBFT block header.
Header *cmttypes.Header `json:"header"`
// LastCommit is the CometBFT last commit info.
LastCommit *cmttypes.Commit `json:"last_commit"`
}
BlockMeta is the CometBFT-specific per-block metadata.
func (*BlockMeta) TryUnmarshal ¶
TryUnmarshal attempts to unmarshal the given data into a BlockMeta.
It first tries to unmarshal into V1, and if that fails, it tries to unmarshal into V2.
We only try to unmarshal into the version of the metadata structure starting at Oasis-Core Eden (V1), and into V2 (starting at #6235). This may fail on blocks from an incompatible earlier version.
Click to show internal directories.
Click to hide internal directories.