neo-go/cli
Evgeniy Stratonikov a429aa3e68 wallet: truncate file when writing
If wallet size decreases, we need to remove trailing garbage if it
exists. This can happen when removing account or reading pretty-printed
wallet. It doesn't affect our CLI (we decode only file prefix), but
it is nice to always have a valid JSON file.

Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
2021-07-29 17:11:49 +03:00
..
cmdargs cli: allow to specify CustomContracts/Groups signer 2021-05-28 15:46:33 +03:00
flags *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
input *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
options rpc: allow to use address, id or name instead of scripthash [Client] 2020-11-03 17:58:24 +03:00
paramcontext context: support Neo.Network.P2P.Payloads.Transaction type 2021-07-23 11:33:51 +03:00
query cli/query: add height command 2021-07-23 10:22:58 +03:00
server cli: remove --skip parameter from restore 2021-07-16 13:32:08 +03:00
smartcontract cli/sc: add sysgas option to add some gas 2021-07-02 11:57:47 +03:00
testdata core/block: add Nonce field to header 2021-07-15 15:58:49 +03:00
util cli: use Writer from app instead of Stdout 2020-09-18 12:05:31 +03:00
vm cli: support escape codes 2021-02-11 16:06:11 +03:00
wallet cli: move wallet candidate getstate into query voter 2021-07-22 21:13:44 +03:00
.gitignore Better error messages (#24) 2018-02-24 10:10:45 +01:00
candidate_test.go cli/query: output key in voter data 2021-07-22 21:13:44 +03:00
contract_test.go cli: add query tx command, fix #2069 2021-07-20 18:03:50 +03:00
dump_test.go *: create real temporary dirs and files in tests 2021-07-20 12:51:11 +03:00
executor_test.go cli: add query tx command, fix #2069 2021-07-20 18:03:50 +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 *: create real temporary dirs and files in tests 2021-07-20 12:51:11 +03:00
nep11_test.go *: create real temporary dirs and files in tests 2021-07-20 12:51:11 +03:00
nep17_test.go *: create real temporary dirs and files in tests 2021-07-20 12:51:11 +03:00
options_test.go *: upgrade tests to use T.Cleanup() 2021-03-01 17:08:00 +03:00
query_test.go cli/query: add height command 2021-07-23 10:22:58 +03:00
wallet_test.go wallet: truncate file when writing 2021-07-29 17:11:49 +03:00