Merge pull request #2567 from nspcc-dev/check-consensus-start
consensus: check whether server is started before transaction handling
This commit is contained in:
commit
a748298564
1 changed files with 1 additions and 1 deletions
|
@ -414,7 +414,7 @@ func (s *service) OnPayload(cp *npayload.Extensible) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *service) OnTransaction(tx *transaction.Transaction) {
|
func (s *service) OnTransaction(tx *transaction.Transaction) {
|
||||||
if s.dbft != nil {
|
if s.dbft != nil && s.started.Load() {
|
||||||
s.transactions <- tx
|
s.transactions <- tx
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue