neoneo-go/pkg/rpc/server
Roman Khimov 0da0bb21ee rpc: make getnextvalidators behavior compliant with C# node
Turns out, our getnextvalidators implementation already works the way
getcandidates is supposed to work, but original getnextvalidators works a bit
differently. It only returns validators, it doesn't return Active flag (all
of them are active) and it represents votes as a number. So for the maximum
compatibility:
 * drop non-validator keys from getnextvalidators server-side
 * drop Active flag client-side (sorry, it doesn't exist)
 * allow unmarshalling old answers along with the new one

This technically breaks `query candidates` CLI command, but it'll be fixed
when getcandidates are to be introduced.
2022-07-01 14:52:02 +03:00
..
testdata core: move basic chain creation into a package of its own 2022-06-08 15:25:27 +03:00
client_test.go core: use dao-binded cache for native contracts 2022-04-29 16:10:04 +03:00
error.go rpc: get rid of erverError type 2022-06-10 16:47:57 +03:00
prometheus.go rpc/server: register ws calls in Prometheus 2022-03-21 23:18:00 +03:00
server.go rpc: make getnextvalidators behavior compliant with C# node 2022-07-01 14:52:02 +03:00
server_helper_test.go rpc: bump getversion compat 2022-05-16 06:59:23 +03:00
server_test.go rpc: adjust test data 2022-06-06 13:02:29 +03:00
subscription.go [#2442] English Check 2022-05-04 19:48:27 +03:00
subscription_test.go rpc/server: make Server conform network.Service interface 2022-04-22 10:49:06 +03:00
tokens.go [#2442] English Check 2022-05-04 19:48:27 +03:00
util.go rpc, internal: fix CodeQL int conversions warnings 2021-04-19 11:30:28 +03:00