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 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.
Click to show internal directories.
Click to hide internal directories.