compare

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(reference proto.Message, current proto.Message, includeUnknownFields bool, registry *fcproto.Registry, bytesEncoding string) (referenceJSON string, currentJSON string, isDifferent bool, err error)

Compare marshals both proto messages to JSON and returns their representations along with whether they differ. The returned JSON strings are normalized (sorted keys, consistent indentation) for use with diffx.WriteJSONDiff.

func NewToolsCompareBlocksCmd

func NewToolsCompareBlocksCmd[B firecore.Block](chain *firecore.Chain[B], zlog *zap.Logger) *cobra.Command

Types

type BlockDifferences added in v1.2.0

type BlockDifferences struct {
	BlockNumber uint64
	Differences []string
}

Jump to

Keyboard shortcuts

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