chainmock

package
v1.22.21 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package chainmock provides mock implementations for testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChain

type MockChain struct {
	// contains filtered or unexported fields
}

MockChain provides a mock implementation for testing

func NewMockChain

func NewMockChain(id []byte) *MockChain

NewMockChain creates a new mock chain

func (*MockChain) Height

func (m *MockChain) Height() uint64

Height returns the current height

func (*MockChain) ID

func (m *MockChain) ID() []byte

ID returns the chain ID

func (*MockChain) SetHeight

func (m *MockChain) SetHeight(height uint64)

SetHeight sets the chain height

Jump to

Keyboard shortcuts

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