mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-04-01 03:46:40 +00:00
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…
Add table
Reference in a new issue