2020-10-29 15:57:16 +00:00
|
|
|
package netmap
|
|
|
|
|
2021-11-10 11:05:51 +00:00
|
|
|
import "github.com/nspcc-dev/neo-go/pkg/util"
|
|
|
|
|
2020-10-29 15:57:16 +00:00
|
|
|
// netmapCleanupTick is a event to remove offline nodes.
|
|
|
|
type netmapCleanupTick struct {
|
|
|
|
epoch uint64
|
2021-11-10 11:05:51 +00:00
|
|
|
|
2022-04-21 11:28:05 +00:00
|
|
|
// txHash is used in notary environment
|
2021-11-10 11:05:51 +00:00
|
|
|
// for calculating unique but same for
|
|
|
|
// all notification receivers values.
|
|
|
|
txHash util.Uint256
|
|
|
|
}
|
|
|
|
|
2022-04-21 11:28:05 +00:00
|
|
|
// TxHash returns the hash of the TX that triggers
|
2021-11-10 11:05:51 +00:00
|
|
|
// synchronization process.
|
|
|
|
func (s netmapCleanupTick) TxHash() util.Uint256 {
|
|
|
|
return s.txHash
|
2020-10-29 15:57:16 +00:00
|
|
|
}
|
|
|
|
|
2022-04-21 11:28:05 +00:00
|
|
|
// MorphEvent implements the Event interface.
|
2020-10-29 15:57:16 +00:00
|
|
|
func (netmapCleanupTick) MorphEvent() {}
|