neo-go/pkg/consensus
Roman Khimov 2f8e7e4d33 native: fix getvalidators to match C# implementation
ValidatorsCount is not initialized at block 0 with C# node (the first voter
initializes it) and until that initialization happens the standby validators
list is being returned as is without sorting.

Fixes state mismatch for the key ffffffff0e00000000000000000000000000000001 in
the first blocks.

It also affects tests as now the first validator is different and it receives
the network fees.
2020-06-24 10:21:24 +03:00
..
testdata *: change address to the new format 2020-06-17 15:58:21 +03:00
block.go consensus.Block: removed unnecessary setters 2020-04-27 17:59:56 +03:00
block_test.go block/transaction: add network magic into the hash 2020-06-18 12:39:50 +03:00
cache.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
cache_test.go consensus: added partial message decoding 2020-04-16 14:35:58 +03:00
change_view.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
change_view_test.go network: plug in dBFT library 2019-11-27 10:57:22 +03:00
commit.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
commit_test.go random: make use or random package in tests 2020-03-27 10:27:46 +03:00
consensus.go *: use MaxTransactionsPerBlock from Policy native contract 2020-06-24 07:58:05 +03:00
consensus_test.go native: fix getvalidators to match C# implementation 2020-06-24 10:21:24 +03:00
crypto.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
crypto_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
payload.go vm: move Bool method to the StackItem interface 2020-04-28 15:13:41 +03:00
payload_test.go *: drop miner transaction 2020-04-27 17:57:37 +03:00
prepare_request.go *: drop miner transaction 2020-04-27 17:57:37 +03:00
prepare_request_test.go core, consensus: nanoseconds-precision timestamp 2020-04-27 17:57:32 +03:00
prepare_response.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +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 consensus: added partial message decoding 2020-04-16 14:35:58 +03:00
recovery_message_test.go *: drop miner transaction 2020-04-27 17:57:37 +03:00
recovery_request.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
recovery_request_test.go network: plug in dBFT library 2019-11-27 10:57:22 +03:00