neo-go/pkg/consensus
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
..
testdata *: regenerate all wallets with adjusted parameters 2024-03-01 19:19:03 +03:00
block.go dbft: update to AMEV-enabled version 2024-08-01 22:29:51 +03:00
block_test.go dbft: update to AMEV-enabled version 2024-08-01 22:29:51 +03:00
cache.go [#2442] English Check 2022-05-04 19:48:27 +03:00
cache_test.go consensus: remove unused dBFT payload methods 2024-03-25 19:21:51 +03:00
change_view.go consensus: remove unused dBFT payload methods 2024-03-25 19:21:51 +03:00
change_view_test.go consensus: remove unused dBFT payload methods 2024-03-25 19:21:51 +03:00
commit.go consensus: remove unused dBFT payload methods 2024-03-25 19:21:51 +03:00
commit_test.go consensus: remove unused dBFT payload methods 2024-03-25 19:21:51 +03:00
consensus.go consensus: don't do useless key sorting 2024-08-27 08:24:52 +03:00
consensus_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
crypto.go dbft: update to AMEV-enabled version 2024-08-01 22:29:51 +03:00
crypto_test.go dbft: update to AMEV-enabled version 2024-08-01 22:29:51 +03:00
doc.go *: add more package-specific documentation 2021-03-19 16:18:45 +03:00
payload.go dbft: update to AMEV-enabled version 2024-08-01 22:29:51 +03:00
payload_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
prepare_request.go consensus: remove unused dBFT payload methods 2024-03-25 19:21:51 +03:00
prepare_request_test.go consensus: remove unused dBFT payload methods 2024-03-25 19:21:51 +03:00
prepare_response.go consensus: fetch dbft pre-0.2.0 version 2024-03-25 19:21:50 +03:00
prepare_response_test.go consensus: fetch dbft pre-0.2.0 version 2024-03-25 19:21:50 +03:00
recovery_message.go dbft: update to AMEV-enabled version 2024-08-01 22:29:51 +03:00
recovery_message_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
recovery_request.go consensus: remove unused dBFT payload methods 2024-03-25 19:21:51 +03:00
recovery_request_test.go consensus: remove unused dBFT payload methods 2024-03-25 19:21:51 +03:00