neoneo-go/pkg/consensus
Anna Shaleva 07e1bc7cd7 core: rename (*Blockchain).GetValidators to ComputeNextBlockValidators
We have two similar blockchain APIs: GetNextBlockValidators and GetValidators.
It's hard to distinguish them, thus renaming it to match the meaning, so what
we have now is:

GetNextBlockValidators literally just returns the top of the committee that
was elected in the start of batch of CommitteeSize blocks batch. It doesn't
change its valie every block.

ComputeNextBlockValidators literally computes the list of validators based on
the most fresh committee members information got from the NeoToken's storage
and based on the latest register/unregister/vote events. The list returned by
this method may be updated every block.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
2023-10-10 13:18:05 +03:00
..
testdata wallet: fix wallet version to conform to NEP-6 2022-08-07 22:41:40 +03:00
block.go [#2442] English Check 2022-05-04 19:48:27 +03:00
block_test.go block: drop Network from the Header 2021-03-26 13:45:18 +03:00
cache.go [#2442] English Check 2022-05-04 19:48:27 +03:00
cache_test.go consensus: refactor payloads structure 2021-01-22 10:38:32 +03:00
change_view.go [#2442] English Check 2022-05-04 19:48:27 +03:00
change_view_test.go consensus: replace magic 1000000 with something more meaningful 2020-07-11 19:54:50 +03:00
commit.go [#2442] English Check 2022-05-04 19:48:27 +03:00
commit_test.go pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00
consensus.go core: rename (*Blockchain).GetValidators to ComputeNextBlockValidators 2023-10-10 13:18:05 +03:00
consensus_test.go *: use require.ErrorIs instead of require.True(t, error.Is()) 2023-05-04 17:03:47 +03:00
crypto.go consensus: update dbft, drop marshaling from private key 2022-09-02 14:44:18 +03:00
crypto_test.go consensus: update dbft, drop marshaling from private key 2022-09-02 14:44:18 +03:00
doc.go *: add more package-specific documentation 2021-03-19 16:18:45 +03:00
payload.go *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
payload_test.go *: use uint*Size and SignatureLen constants where appropriate 2022-10-05 10:45:52 +03:00
prepare_request.go consensus: don't use WriteArray for PrepareRequests 2022-06-02 15:38:39 +03:00
prepare_request_test.go consensus: remove nonce from PrepareRequest 2021-03-18 21:32:43 +03:00
prepare_response.go [#2442] English Check 2022-05-04 19:48:27 +03:00
prepare_response_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
recovery_message.go network/consensus: always process dBFT messages as high priority 2022-08-02 13:07:18 +03:00
recovery_message_test.go *: remove dead code 2021-05-12 18:13:14 +03:00
recovery_request.go [#2442] English Check 2022-05-04 19:48:27 +03:00
recovery_request_test.go consensus: replace magic 1000000 with something more meaningful 2020-07-11 19:54:50 +03:00