neoneo-go/pkg/rpc/client
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
..
nns rpc/client: remove dependency on examples 2022-01-25 12:41:06 +03:00
client.go rpc: carefully review places where Client.cache.initDone is used 2022-02-22 12:52:14 +03:00
doc.go rpc: update docs of RPC client 2022-01-17 12:00:56 +03:00
doc_test.go rpc: adjust client documentation 2021-09-08 17:53:09 +03:00
helper.go rpc: accept NEP11 token IDs as []byte for client methods 2022-02-09 11:55:07 +03:00
native.go rpc/client: remove dependency on examples 2022-01-25 12:41:06 +03:00
nep.go rpc: accept NEP11 token IDs as []byte for client methods 2022-02-09 11:55:07 +03:00
nep11.go rpc: carefully review places where Client.cache.initDone is used 2022-02-22 12:52:14 +03:00
nep17.go rpc: carefully review places where Client.cache.initDone is used 2022-02-22 12:52:14 +03:00
policy.go rpc: carefully review places where Client.cache.initDone is used 2022-02-22 12:52:14 +03:00
rpc.go rpc: carefully review places where Client.cache.initDone is used 2022-02-22 12:52:14 +03:00
rpc_test.go rpc: carefully review places where Client.cache.initDone is used 2022-02-22 12:52:14 +03:00
wsclient.go rpc: carefully review places where Client.cache.initDone is used 2022-02-22 12:52:14 +03:00
wsclient_test.go rpc: carefully review places where Client.cache.initDone is used 2022-02-22 12:52:14 +03:00