2023-11-28 14:34:57 +01:00
|
|
|
package account
|
|
|
|
|
|
|
|
type ExtraSettings struct {
|
|
|
|
// PeerApprovalEnabled enables or disables the need for peers bo be approved by an administrator
|
|
|
|
PeerApprovalEnabled bool
|
2024-03-27 18:48:48 +01:00
|
|
|
|
|
|
|
// IntegratedValidatorGroups list of group IDs to be used with integrated approval configurations
|
|
|
|
IntegratedValidatorGroups []string `gorm:"serializer:json"`
|
2023-11-28 14:34:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Copy copies the ExtraSettings struct
|
|
|
|
func (e *ExtraSettings) Copy() *ExtraSettings {
|
2024-03-27 18:48:48 +01:00
|
|
|
var cpGroup []string
|
|
|
|
|
2023-11-28 14:34:57 +01:00
|
|
|
return &ExtraSettings{
|
2024-03-27 18:48:48 +01:00
|
|
|
PeerApprovalEnabled: e.PeerApprovalEnabled,
|
|
|
|
IntegratedValidatorGroups: append(cpGroup, e.IntegratedValidatorGroups...),
|
2023-11-28 14:34:57 +01:00
|
|
|
}
|
|
|
|
}
|