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"` ValidatorRegistration ValidatorRegistration `json:"validator_registration"` }
type ValidatorRegistration ¶
type ValidatorRegistration struct {
Enable bool `json:"enable"`
}
Click to show internal directories.
Click to hide internal directories.