neoneo-go/pkg/core
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
..
block *: use require.ErrorIs instead of require.True(t, error.Is()) 2023-05-04 17:03:47 +03:00
chaindump *: use require.ErrorIs instead of require.True(t, error.Is()) 2023-05-04 17:03:47 +03:00
dao dao: simplify NewSimple() 2023-09-04 16:56:59 +03:00
fee vm: add ABORTMSG and ASSERTMSG opcodes 2023-08-10 12:41:30 +03:00
interop dao: simplify NewSimple() 2023-09-04 16:56:59 +03:00
mempool *: move NVB and Conflicts attributes out of extensions 2023-09-04 16:39:44 +03:00
mempoolevent *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
mpt *: use require.ErrorIs instead of require.True(t, error.Is()) 2023-05-04 17:03:47 +03:00
native core: rename (*Blockchain).GetValidators to ComputeNextBlockValidators 2023-10-10 13:18:05 +03:00
state smartcontract: fix wildcard trusts deserialization 2023-09-25 11:53:47 +03:00
stateroot rpcsrv: refactor findstoragehistoric handler to avoid DoS attack 2023-08-24 17:15:59 +03:00
statesync dao: simplify NewSimple() 2023-09-04 16:56:59 +03:00
storage storage: Use timeout for boltdb database opening 2023-10-06 13:10:11 +03:00
test_data core: refactor helper test contracts generation 2022-03-30 11:46:29 +03:00
transaction core: fix formatted error on transaction verification 2023-07-21 13:50:20 +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 core: make GetHeaderHash accept uint32 2022-11-25 14:30:51 +03:00
blockchain.go core: rename (*Blockchain).GetValidators to ComputeNextBlockValidators 2023-10-10 13:18:05 +03:00
blockchain_core_test.go core: rename (*Blockchain).GetValidators to ComputeNextBlockValidators 2023-10-10 13:18:05 +03:00
blockchain_neotest_test.go dao: simplify NewSimple() 2023-09-04 16:56:59 +03:00
doc.go *: apply go 1.19 formatter heuristics 2022-08-09 15:37:52 +03:00
headerhashes.go core: don't always store all hashes in memory 2022-11-25 14:30:51 +03:00
helper_test.go config: add a special Blockchain type to configure Blockchain 2022-12-07 17:35:53 +03:00
interops.go runtime: implement System.Runtime.LoadScript, fix #2701 2022-11-25 15:11:49 +03:00
native_designate_test.go *: use require.ErrorIs instead of require.True(t, error.Is()) 2023-05-04 17:03:47 +03:00
prometheus.go core: distinguish notarypool/mempool metrics 2023-04-13 18:40:19 +03:00
util.go core: simplify header hash list restoration logic 2022-11-25 13:08:03 +03:00
util_test.go core: export CreateGenesisBlock 2022-06-08 18:20:34 +03:00