neo-go/pkg/services/notary
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
..
testdata wallet: fix wallet version to conform to NEP-6 2022-08-07 22:41:40 +03:00
core_test.go core: move notary tests into the notary package 2022-06-08 23:07:28 +03:00
node.go crypto: allow to provide non-default scrypt parameters 2021-06-11 15:22:28 +03:00
node_test.go services/consensus: drop blockchainer.Blockchainer use 2022-01-14 19:57:16 +03:00
notary.go core: accept two-side channels for sub/unsub, read on unsub 2022-08-19 22:08:40 +03:00
notary_test.go services: add ability to combine notary signers 2021-10-25 12:22:13 +03:00
request_type.go [#2442] English Check 2022-05-04 19:48:27 +03:00