neoneo-go/cli/wallet
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
..
legacy.go crypto: allow to provide non-default scrypt parameters 2021-06-11 15:22:28 +03:00
legacy_test.go slice: introduce common Copy helper 2021-07-19 22:57:55 +03:00
multisig.go cli/wallet: allow to read wallet from stdin where it's possible 2021-12-08 10:36:17 +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
validator.go cli/wallet: allow to read wallet from stdin where it's possible 2021-12-08 10:36:17 +03:00
wallet.go cli: add tests for wallet-related commands 2022-02-02 13:48:12 +03:00