neoneo-go/pkg
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
..
compiler go.mod: update go-datastructures to 1.0.53 2021-07-21 23:28:00 +03:00
config config: update mainnet magic 2021-07-21 14:42:26 +03:00
consensus consensus: fix nonce handling 2021-07-21 19:06:19 +03:00
core Merge pull request #2064 from nspcc-dev/fix-remove-stale-hang 2021-07-23 18:16:14 +03:00
crypto keys: trivial code simplification 2021-07-21 17:05:49 +03:00
encoding util: move ArrayReverse into package of its own 2021-07-19 22:57:55 +03:00
interop interop: implement System.Runtime.GetRandom 2021-07-15 16:00:01 +03:00
io stackitem: use byte-slice directly during encoding 2021-07-13 11:06:18 +03:00
network *: increase GAS for verification 2021-07-14 10:27:09 +03:00
rpc rpc: add GetStateHeight to client 2021-07-22 21:13:44 +03:00
services notary: fix possible deadlock in UpdateNotaryNodes 2021-07-23 14:48:00 +03:00
smartcontract context: read item key in LE 2021-07-23 12:43:04 +03:00
util slice: introduce common Copy helper 2021-07-19 22:57:55 +03:00
vm Merge pull request #2091 from nspcc-dev/tune-error-messages 2021-07-23 10:40:26 +03:00
wallet wallet: truncate file when writing 2021-07-29 17:11:49 +03:00