neo-go/pkg/wallet
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
..
testdata wallet: rename isdefault to isDefault 2021-05-14 10:31:31 +03:00
account.go crypto: allow to provide non-default scrypt parameters 2021-06-11 15:22:28 +03:00
account_test.go crypto: allow to provide non-default scrypt parameters 2021-06-11 15:22:28 +03:00
regenerate_test.go *: regenerate test wallets with resources-friendly scrypt parameters 2021-06-11 15:22:32 +03:00
token.go *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
token_test.go wallet: add Standard field to Token 2021-04-30 15:58:27 +03:00
wallet.go wallet: truncate file when writing 2021-07-29 17:11:49 +03:00
wallet_test.go crypto: allow to provide non-default scrypt parameters 2021-06-11 15:22:28 +03:00