neo-go/pkg/services/stateroot
Roman Khimov eeeb0f6f0e core: accept two-side channels for sub/unsub, read on unsub
Blockchain's notificationDispatcher sends events to channels and these
channels must be read from. Unfortunately, regular service shutdown procedure
does unsubscription first (outside of the read loop) and only then drains the
channel. While it waits for unsubscription request to be accepted
notificationDispatcher can try pushing more data into the same channel which
will lead to a deadlock. Reading in the same method solves this, any number of
events can be pushed until unsub channel accepts the data.
2022-08-19 22:08:40 +03:00
..
message.go [#2442] English Check 2022-05-04 19:48:27 +03:00
network.go [#2442] English Check 2022-05-04 19:48:27 +03:00
service.go core: accept two-side channels for sub/unsub, read on unsub 2022-08-19 22:08:40 +03:00
service_test.go *: do not call wallet.Close() explicitly 2022-07-04 19:09:48 +03:00
signature.go [#2442] English Check 2022-05-04 19:48:27 +03:00
validators.go cli: reload state root service on USR1 2022-08-02 13:02:36 +03:00
vote.go [#2442] English Check 2022-05-04 19:48:27 +03:00