common

package
v0.43.0-dev-malleabili... Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLoggedScriptsCacheSize = 1_000_000

DefaultLoggedScriptsCacheSize is the default size of the lookup cache used to dedupe logs of scripts sent to ENs limiting cache size to 16MB and does not affect script execution, only for keeping logs tidy

Variables

This section is empty.

Functions

func IsInsufficientExecutionReceipts

func IsInsufficientExecutionReceipts(err error) bool

func ResolveHeightError

func ResolveHeightError(
	stateParams protocol.Params,
	height uint64,
	genericErr error,
) error

ResolveHeightError processes errors returned during height-based queries. If the error is due to a block not being found, this function determines whether the queried height falls outside the node's accessible range and provides context-sensitive error messages based on spork and node root block heights.

Expected errors during normal operation: - storage.ErrNotFound - Indicates that the queried block does not exist in the local database.

Types

type InsufficientExecutionReceipts

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

InsufficientExecutionReceipts indicates that no execution receipts were found for a given block ID

func NewInsufficientExecutionReceipts

func NewInsufficientExecutionReceipts(blockID flow.Identifier, receiptCount int) InsufficientExecutionReceipts

func (InsufficientExecutionReceipts) Error

Jump to

Keyboard shortcuts

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