utils

package
v1.13.7 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinWatchtowerMaxFee        float64 = 200
	MinWatchtowerPriorityFee   float64 = 3
	BalanceSubmissionForcedGas uint64  = 64000
	RewardsSubmissionForcedGas uint64  = 64000
)

Variables

This section is empty.

Functions

func FindLastBlockWithExecutionPayload added in v1.13.0

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

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, error)

func FindNextSubmissionTimestamp added in v1.13.0

func FindNextSubmissionTimestamp(latestBlockTimestamp int64, referenceTimestamp int64, submissionIntervalInSeconds int64) (int64, error)

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