2020-12-18 09:27:19 +00:00
|
|
|
package audit
|
|
|
|
|
2022-04-21 11:28:05 +00:00
|
|
|
// Start is an event to start a new round of data audit.
|
2020-12-18 09:27:19 +00:00
|
|
|
type Start struct {
|
|
|
|
epoch uint64
|
|
|
|
}
|
|
|
|
|
2022-04-21 11:28:05 +00:00
|
|
|
// MorphEvent implements the Event interface.
|
2020-12-18 09:27:19 +00:00
|
|
|
func (a Start) MorphEvent() {}
|
|
|
|
|
|
|
|
func NewAuditStartEvent(epoch uint64) Start {
|
|
|
|
return Start{
|
|
|
|
epoch: epoch,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a Start) Epoch() uint64 {
|
|
|
|
return a.epoch
|
|
|
|
}
|