Documentation ¶
Index ¶
- func NewManualPOAProvider() module.Provider[*engine.Engine, seatmanager.SeatManager]
- type ManualPOA
- func (m *ManualPOA) AccountID(alias string) iotago.AccountID
- func (m *ManualPOA) Accounts() *account.Accounts
- func (m *ManualPOA) AddAccount(id iotago.AccountID, alias string) iotago.AccountID
- func (m *ManualPOA) AddRandomAccounts(aliases ...string) (accountIDs []iotago.AccountID)
- func (m *ManualPOA) CommitteeInEpoch(epoch iotago.EpochIndex) (*account.SeatedAccounts, bool)
- func (m *ManualPOA) CommitteeInSlot(slot iotago.SlotIndex) (*account.SeatedAccounts, bool)
- func (m *ManualPOA) GetSeat(alias string) (account.SeatIndex, bool)
- func (m *ManualPOA) InitializeCommittee(_ iotago.EpochIndex, _ time.Time) error
- func (m *ManualPOA) OnlineCommittee() ds.Set[account.SeatIndex]
- func (m *ManualPOA) ReuseCommittee(currentEpoch iotago.EpochIndex, targetEpoch iotago.EpochIndex) (*account.SeatedAccounts, error)
- func (m *ManualPOA) RotateCommittee(epoch iotago.EpochIndex, validators accounts.AccountsData) (*account.SeatedAccounts, error)
- func (m *ManualPOA) SeatCountInEpoch(_ iotago.EpochIndex) int
- func (m *ManualPOA) SeatCountInSlot(_ iotago.SlotIndex) int
- func (m *ManualPOA) SetOffline(aliases ...string)
- func (m *ManualPOA) SetOnline(aliases ...string)
- func (m *ManualPOA) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManualPOAProvider ¶
func NewManualPOAProvider() module.Provider[*engine.Engine, seatmanager.SeatManager]
Types ¶
type ManualPOA ¶
func NewManualPOA ¶
func NewManualPOA(e iotago.APIProvider, committeeStore epochstore.Store[*account.SeatedAccounts]) *ManualPOA
func (*ManualPOA) AddAccount ¶
func (*ManualPOA) AddRandomAccounts ¶
func (*ManualPOA) CommitteeInEpoch ¶
func (m *ManualPOA) CommitteeInEpoch(epoch iotago.EpochIndex) (*account.SeatedAccounts, bool)
CommitteeInEpoch returns the set of validators selected to be part of the committee in the given epoch.
func (*ManualPOA) CommitteeInSlot ¶
CommitteeInSlot returns the set of validators selected to be part of the committee in the given slot.
func (*ManualPOA) InitializeCommittee ¶
func (*ManualPOA) ReuseCommittee ¶
func (m *ManualPOA) ReuseCommittee(currentEpoch iotago.EpochIndex, targetEpoch iotago.EpochIndex) (*account.SeatedAccounts, error)
func (*ManualPOA) RotateCommittee ¶
func (m *ManualPOA) RotateCommittee(epoch iotago.EpochIndex, validators accounts.AccountsData) (*account.SeatedAccounts, error)
func (*ManualPOA) SeatCountInEpoch ¶
func (m *ManualPOA) SeatCountInEpoch(_ iotago.EpochIndex) int
func (*ManualPOA) SetOffline ¶
Click to show internal directories.
Click to hide internal directories.