From 9b97e95f8273853115ba482a4845656cce105c68 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Thu, 29 Oct 2020 18:57:16 +0300 Subject: [PATCH] [#132] Add internal event to process cleanup This event will be produced by new epoch handler. All cleanups should be synchronous because smart contract can't store inner ring votes forever. Therefore voting should be done in similar time interval for all inner ring nodes. Signed-off-by: Alex Vanin --- pkg/innerring/processors/netmap/internal_events.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pkg/innerring/processors/netmap/internal_events.go diff --git a/pkg/innerring/processors/netmap/internal_events.go b/pkg/innerring/processors/netmap/internal_events.go new file mode 100644 index 00000000..6b3251fb --- /dev/null +++ b/pkg/innerring/processors/netmap/internal_events.go @@ -0,0 +1,9 @@ +package netmap + +// netmapCleanupTick is a event to remove offline nodes. +type netmapCleanupTick struct { + epoch uint64 +} + +// MorphEvent implements Event interface. +func (netmapCleanupTick) MorphEvent() {}