api

package
v0.7.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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

func (b *BlockMeta) TryUnmarshal(data []byte) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL