prysm

package
v1.5.0-a2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileMode fs.FileMode = 0600
	DirMode  fs.FileMode = 0700
)

Config

Variables

This section is empty.

Functions

This section is empty.

Types

type FeeRecipientFileContents

type FeeRecipientFileContents struct {
	DefaultConfig  ProposerFeeRecipient            `json:"default_config"`
	ProposerConfig map[string]ProposerFeeRecipient `json:"proposer_config"`
}

type FeeRecipientManager

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

func NewFeeRecipientManager

func NewFeeRecipientManager(keystore keystore.Keystore) *FeeRecipientManager

Creates a new fee recipient manager

func (*FeeRecipientManager) CheckFeeRecipientFile

func (fm *FeeRecipientManager) CheckFeeRecipientFile(distributor common.Address) (bool, bool, error)

Checks if the fee recipient file exists and has the correct distributor address in it. The first return value is for file existence, the second is for validation of the fee recipient address inside.

func (*FeeRecipientManager) UpdateFeeRecipientFile

func (fm *FeeRecipientManager) UpdateFeeRecipientFile(distributor common.Address) error

Writes the given address to the fee recipient file. The VC should be restarted to pick up the new file.

type ProposerFeeRecipient

type ProposerFeeRecipient struct {
	FeeRecipient string `json:"fee_recipient"`
}

Jump to

Keyboard shortcuts

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