[#446] innerring: Use alphabet state in processors

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-03-23 18:20:44 +03:00 committed by Alex Vanin
parent 1332db883e
commit e05f1e1394
17 changed files with 80 additions and 69 deletions

View file

@ -13,16 +13,16 @@ import (
)
type (
// ActiveState is a callback interface for inner ring global state
ActiveState interface {
IsActive() bool
// AlphabetState is a callback interface for inner ring global state
AlphabetState interface {
IsAlphabet() bool
}
// Processor is an event handler for payments in the system.
Processor struct {
log *logger.Logger
state ActiveState
state AlphabetState
pool nodeutil.WorkerPool
@ -38,7 +38,7 @@ type (
Prm struct {
AuditProcessor AuditProcessor
BasicIncome BasicIncomeInitializer
State ActiveState
State AlphabetState
}
)