Merge pull request #2689 from nspcc-dev/stateroot-shutdown-panic

stateroot: fix panic on shutdown
This commit is contained in:
Roman Khimov 2022-09-13 13:29:57 +03:00 committed by GitHub
commit bd8d46e11a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,9 @@ func (s *service) Shutdown() {
s.log.Info("stopping state validation service")
close(s.stopCh)
<-s.done
s.wallet.Close()
if s.wallet != nil {
s.wallet.Close()
}
}
func (s *service) signAndSend(r *state.MPTRoot) error {