utils

package
v1.20.8 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinWatchtowerMaxFee        float64 = 20
	MinWatchtowerPriorityFee   float64 = 0.01
	BalanceSubmissionForcedGas uint64  = 300000
	RewardsSubmissionForcedGas uint64  = 300000
)

Variables

This section is empty.

Functions

func FindLastBlockWithExecutionPayload added in v1.13.0

func FindLastBlockWithExecutionPayload(bc beacon.Client, ec rocketpool.ExecutionClient, slotNumber uint64) (beacon.BeaconBlock, error)

Walks back from slotNumber until it finds a block that actually has an Execution Layer block behind it, and returns it with ExecutionBlockNumber populated. Gloas (EIP-7732) blocks carry only the payload bid's block hash, so the number is resolved through the EL.

func FindNextSubmissionTarget added in v1.13.7

func FindNextSubmissionTarget(rp *rocketpool.RocketPool, eth2Config beacon.Eth2Config, bc beacon.Client, ec rocketpool.ExecutionClient, lastSubmissionBlock uint64, referenceTimestamp int64, submissionIntervalInSeconds int64) (uint64, time.Time, *types.Header, bool, error)

func GetBestApiClient added in v1.20.8

func GetBestApiClient(primary *rocketpool.RocketPool, cfg *config.RocketPoolConfig, printMessage func(string), blockNumber *big.Int) (*rocketpool.RocketPool, error)

Determines if the primary EC can be used for historical queries, or if the Archive EC is required

func GetWatchtowerMaxFee

func GetWatchtowerMaxFee(cfg *config.RocketPoolConfig) float64

Get the max fee for watchtower transactions

func GetWatchtowerPrioFee

func GetWatchtowerPrioFee(cfg *config.RocketPoolConfig) float64

Get the priority fee for watchtower transactions

Types

This section is empty.

Jump to

Keyboard shortcuts

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