bad739258e
Add hash of the TX that generated notification to neofs/netmap event structures. Adapt all neofs/netmap wrapper calls to new structures. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
22 lines
542 B
Go
22 lines
542 B
Go
package netmap
|
|
|
|
import "github.com/nspcc-dev/neo-go/pkg/util"
|
|
|
|
// netmapCleanupTick is a event to remove offline nodes.
|
|
type netmapCleanupTick struct {
|
|
epoch uint64
|
|
|
|
// txHash is used in notary environmental
|
|
// for calculating unique but same for
|
|
// all notification receivers values.
|
|
txHash util.Uint256
|
|
}
|
|
|
|
// TxHash returns hash of the TX that triggers
|
|
// synchronization process.
|
|
func (s netmapCleanupTick) TxHash() util.Uint256 {
|
|
return s.txHash
|
|
}
|
|
|
|
// MorphEvent implements Event interface.
|
|
func (netmapCleanupTick) MorphEvent() {}
|