neo-go/pkg/core
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
..
block *: improve for loop syntax 2024-08-30 21:45:18 +03:00
chaindump chaindump: microoptimize memory management 2024-07-16 15:03:17 +03:00
dao *: improve for loop syntax 2024-08-30 21:45:18 +03:00
fee *: improve for loop syntax 2024-08-30 21:45:18 +03:00
interop *: improve for loop syntax 2024-08-30 21:45:18 +03:00
mempool *: improve for loop syntax 2024-08-30 21:45:18 +03:00
mempoolevent *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
mpt *: improve for loop syntax 2024-08-30 21:45:18 +03:00
native *: improve for loop syntax 2024-08-30 21:45:18 +03:00
state *: improve for loop syntax 2024-08-30 21:45:18 +03:00
stateroot *: fix linter issues 2024-08-14 12:36:15 +03:00
statesync *: improve for loop syntax 2024-08-30 21:45:18 +03:00
storage *: improve for loop syntax 2024-08-30 21:45:18 +03:00
test_data core: refactor helper test contracts generation 2022-03-30 11:46:29 +03:00
transaction *: improve for loop syntax 2024-08-30 21:45:18 +03:00
basic_chain_test.go config: add a special Blockchain type to configure Blockchain 2022-12-07 17:35:53 +03:00
bench_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
blockchain.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
blockchain_core_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
blockchain_neotest_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
doc.go *: apply go 1.19 formatter heuristics 2022-08-09 15:37:52 +03:00
headerhashes.go *: drop open-coded slice reversing 2024-08-24 22:41:48 +03:00
helper_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
interops.go core: add System.Runtime.CurrentSigners syscall 2023-11-20 14:46:27 +03:00
native_designate_test.go *: introduce Genesis protocol configuration 2023-10-19 18:30:20 +03:00
prometheus.go core: distinguish notarypool/mempool metrics 2023-04-13 18:40:19 +03:00
util.go *: drop open-coded slice reversing 2024-08-24 22:41:48 +03:00
util_test.go *: add GenesisTransaction extension to the protocol configuration 2023-10-19 18:33:50 +03:00