mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
12 lines
292 B
Go
12 lines
292 B
Go
package stateroot
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
|
|
)
|
|
|
|
// SetUpdateValidatorsCallback sets callback for sending signed root.
|
|
func (s *Module) SetUpdateValidatorsCallback(f func(uint32, keys.PublicKeys)) {
|
|
s.mtx.Lock()
|
|
defer s.mtx.Unlock()
|
|
s.updateValidatorsCb = f
|
|
}
|