neo-go/cli
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
..
cmdargs cli/smartcontract: allow to deploy contracts with scope 2021-10-13 15:55:42 +03:00
flags *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
input cli: allow to relay transaction on Enter 2021-12-09 19:14:01 +03:00
options cli: fix TestGetTimeoutContext test 2021-11-18 17:35:15 +03:00
paramcontext context: support Neo.Network.P2P.Payloads.Transaction type 2021-07-23 11:33:51 +03:00
query cli/wallet: allow to testinvoke transaction before signing 2021-09-23 11:48:25 +03:00
server cli: ensure chain is properly stopped after chain-related commands 2022-02-10 10:33:36 +03:00
smartcontract rpc: carefully review places where Client.cache.initDone is used 2022-02-22 12:52:14 +03:00
testdata cli: add scope check tests for invocations 2021-11-22 12:46:42 +03:00
util cli/wallet: allow to testinvoke transaction before signing 2021-09-23 11:48:25 +03:00
vm cli: support escape codes 2021-02-11 16:06:11 +03:00
wallet rpc: carefully review places where Client.cache.initDone is used 2022-02-22 12:52:14 +03:00
.gitignore Better error messages (#24) 2018-02-24 10:10:45 +01:00
candidate_test.go cli/wallet: show tx fee before relaying 2021-09-21 11:31:56 +03:00
contract_test.go cli: use ioutil instead of os to read/write files 2022-02-02 13:48:17 +03:00
dump_test.go cli: use ioutil instead of os to read/write files 2022-02-02 13:48:17 +03:00
executor_test.go cli: refactor nep11-related commands and add tests 2022-02-09 11:47:27 +03:00
main.go cli: add query tx command, fix #2069 2021-07-20 18:03:50 +03:00
main_test.go *: upgrade tests to use T.Cleanup() 2021-03-01 17:08:00 +03:00
multisig_test.go cli: add tests for wallet-related commands 2022-02-02 13:48:12 +03:00
nep11_test.go cli: refactor nep11-related commands and add tests 2022-02-09 11:47:27 +03:00
nep17_test.go cli: print zero balance of known token if token flag specified 2021-12-28 11:41:38 +03:00
options_test.go *: upgrade tests to use T.Cleanup() 2021-03-01 17:08:00 +03:00
query_test.go cli/wallet: allow to testinvoke transaction before signing 2021-09-23 11:48:25 +03:00
server_test.go cli: do not run test server on windows 2022-02-10 18:04:09 +03:00
util_test.go cli: add tests for smartcontract-related commands 2022-02-02 11:28:29 +03:00
wallet_test.go cli: add tests for wallet-related commands 2022-02-02 13:48:12 +03:00