neo-go/pkg/network/payload
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
..
address.go [#2442] English Check 2022-05-04 19:48:27 +03:00
address_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
extensible.go network/consensus: always process dBFT messages as high priority 2022-08-02 13:07:18 +03:00
extensible_test.go *: use require.ErrorIs instead of require.True(t, error.Is()) 2023-05-04 17:03:47 +03:00
getblockbyindex.go network: do not allow to request invalid block count 2022-12-28 13:04:56 +03:00
getblockbyindex_test.go pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00
getblocks.go [#2442] English Check 2022-05-04 19:48:27 +03:00
getblocks_test.go pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00
headers.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
headers_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
inventory.go [#2442] English Check 2022-05-04 19:48:27 +03:00
inventory_test.go network: fix linter warning 2023-10-20 17:23:35 +03:00
merkleblock.go [#2442] English Check 2022-05-04 19:48:27 +03:00
merkleblock_test.go *: use require.ErrorIs instead of require.True(t, error.Is()) 2023-05-04 17:03:47 +03:00
mptdata.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
mptdata_test.go mptdata: add test for MaxArraySize 2024-07-03 13:36:53 +03:00
mptinventory.go [#2442] English Check 2022-05-04 19:48:27 +03:00
mptinventory_test.go core: implement statesync module 2021-09-07 19:43:27 +03:00
notary_request.go *: add Copy() to transaction.Transaction and payload.P2PNotaryRequest 2024-04-28 00:59:15 +05:30
notary_request_test.go payload: deduplicate test code slightly 2024-08-24 22:41:48 +03:00
payload.go [#2442] English Check 2022-05-04 19:48:27 +03:00
ping.go [#2442] English Check 2022-05-04 19:48:27 +03:00
ping_test.go pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00
version.go [#2442] English Check 2022-05-04 19:48:27 +03:00
version_test.go pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00