neo-go/pkg/core/mpt
Roman Khimov 1b83dc2476 *: improve for loop syntax
Mostly it's about Go 1.22+ syntax with ranging over integers, but it also
prefers ranging over slices where possible (it makes code a little better to
read).

Notice that we have a number of dangerous loops where slices are mutated
during loop execution, many of these can't be converted since we need proper
length evalutation at every iteration.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-08-30 21:45:18 +03:00
..
base.go [#2442] English Check 2022-05-04 19:48:27 +03:00
batch.go *: use slices package for sorting and searching 2024-08-27 12:29:44 +03:00
batch_test.go storage: expose private storage map for more efficient MPT batch 2022-02-17 23:41:10 +03:00
bench_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
billet.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
billet_test.go *: use require.ErrorIs instead of require.True(t, error.Is()) 2023-05-04 17:03:47 +03:00
branch.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
compat_test.go *: apply go 1.19 formatter heuristics 2022-08-09 15:37:52 +03:00
doc.go *: apply go 1.19 formatter heuristics 2022-08-09 15:37:52 +03:00
empty.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
extension.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
hash.go [#2442] English Check 2022-05-04 19:48:27 +03:00
helpers.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
helpers_test.go core: implement statesync module 2021-09-07 19:43:27 +03:00
leaf.go limits: new package with storage limits 2022-07-08 23:30:30 +03:00
node.go [#2442] English Check 2022-05-04 19:48:27 +03:00
node_test.go mpt: add the notion of MPT mode 2022-02-10 19:15:18 +03:00
proof.go *: replace slice.Copy with bytes.Clone 2024-03-05 13:54:10 +03:00
proof_test.go mpt: add the notion of MPT mode 2022-02-10 19:15:18 +03:00
trie.go *: use slices.Concat where appropriate 2024-08-30 17:00:11 +03:00
trie_store.go *: use slices.Concat where appropriate 2024-08-30 17:00:11 +03:00
trie_store_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
trie_test.go storage: simplify (*MemCachedStore).Put/Delete interface 2022-02-16 18:24:20 +03:00