forked from TrueCloudLab/frostfs-node
8a2b7f4501
The only thing we need hashes for is to process notifications. Balance contract if left for now, as it has some initialization. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
20 lines
529 B
Go
20 lines
529 B
Go
package neofs
|
|
|
|
import (
|
|
neofsEvent "github.com/nspcc-dev/neofs-node/pkg/morph/event/neofs"
|
|
"go.uber.org/zap"
|
|
)
|
|
|
|
// Process config event by setting configuration value from main chain in
|
|
// side chain.
|
|
func (np *Processor) processConfig(config *neofsEvent.Config) {
|
|
if !np.alphabetState.IsAlphabet() {
|
|
np.log.Info("non alphabet mode, ignore config")
|
|
return
|
|
}
|
|
|
|
err := np.netmapClient.SetConfig(config.ID(), config.Key(), config.Value())
|
|
if err != nil {
|
|
np.log.Error("can't relay set config event", zap.Error(err))
|
|
}
|
|
}
|