neoneo-go/pkg/rpc/server
AnnaShaleva 0092330fe1 rpc: carefully review places where Client.cache.initDone is used
1. Keep initDone check only for the places where cache is directly accessed.
   We don't need to check it in other places, otherwise we have a mess of
   duplicating checks.
2. Fix bug in code related to block deserialisation. There's no magic, so
   checking that initialisation is done is not enough for proper block
   deserialisation. We need to manually fill StateRootEnabled field.
3. Since transaction doesn't need network magic to compute its hash, we don't
   need to perform Client initialisation before transaction-related requests.
4. Check that cache is initialised before accessing network magic.
5. Refactor the way Policy contract hash is fetched for Client requests.
   We don't really need Client initialisation for that, it's OK to fetch Policy
   hash on-the-fly.
2022-02-22 12:52:14 +03:00
..
testdata rpc: add NEP11-D tests to server and client 2022-02-09 11:57:16 +03:00
client_test.go rpc: carefully review places where Client.cache.initDone is used 2022-02-22 12:52:14 +03:00
prometheus.go rpc: reuse handlers map for prometheus metrics 2020-03-25 15:25:12 +03:00
server.go config/core: allow to change the number of validators 2022-01-31 23:14:38 +03:00
server_helper_test.go rpc: add NEP11-D tests to server and client 2022-02-09 11:57:16 +03:00
server_test.go rpc: add NEP11-D tests to server and client 2022-02-09 11:57:16 +03:00
subscription.go rpc: move NotaryRequestEvent to the subscriptions pkg 2021-09-24 17:42:59 +03:00
subscription_test.go rpc/server: fix sporadic test failures 2021-07-08 10:40:54 +03:00
tokens.go rpc: add server-side NEP-11 tracking API 2021-11-19 12:58:46 +03:00
util.go rpc, internal: fix CodeQL int conversions warnings 2021-04-19 11:30:28 +03:00