neo-go/pkg
Leonard Lyubich 465d3f43d2 services/rpcsrv: Wait for subscription process to complete when stopped
Previously RPC server shutdown procedure listened to the execution
channel and stopped at the first element that arrived in the queue. This
could lead to the following problems:
 * stopper could steal the execution result from subscriber
 * stopper didn't wait for other subscription actions to complete

Add dedicated channel to `Server` for subscription routine. Close the
channel on `handleSubEvents` return and wait for signal in `Shutdown`.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
2023-08-01 17:27:21 +03:00
..
compiler compiler: don't panic, return error for strange range loops 2023-01-11 16:21:40 +03:00
config config: do not allow negative validators count 2023-08-01 17:22:39 +03:00
consensus consensus: perform batched chain's block sync 2023-03-15 17:45:56 +03:00
core core: improve documentation to SetOracle/SetNotary 2023-08-01 17:26:17 +03:00
crypto *: fix Neo and NeoGo misuses 2022-12-07 17:29:09 +03:00
encoding bigint: don't reallocate big.Int in ToBytes(), fix #2864 2023-01-10 22:51:45 +03:00
interop interop: add getContractByID and getContractHashes to management 2022-12-02 10:54:45 +03:00
io *: fix Neo and NeoGo misuses 2022-12-07 17:29:09 +03:00
neorpc config: use uint32 for validators/committee members count 2023-08-01 17:22:28 +03:00
neotest config: replace VerifyBlocks with SkipBlockVerification 2022-12-07 17:35:56 +03:00
network network: do not use error channel to start network srv 2023-08-01 17:22:01 +03:00
rpcclient config: use uint32 for validators/committee members count 2023-08-01 17:22:28 +03:00
services services/rpcsrv: Wait for subscription process to complete when stopped 2023-08-01 17:27:21 +03:00
smartcontract rpcbinding: fix wrappers for Any type, fix #2898 2023-02-18 00:06:45 +03:00
util slice: add Clean microfunction 2022-09-02 14:44:32 +03:00
vm interop/contract: fix state rollbacks for nested contexts 2023-06-29 11:58:12 +03:00
wallet Merge pull request #2725 from nspcc-dev/move-cli-tests 2022-10-06 13:43:39 +07:00