neoneo-go/pkg/rpc/server
Roman Khimov 9546e021a9 rpc/block: rework the way Block is JSONized
Our block.Block was JSONized in a bit different fashion than result.Block in
its Nonce and NextConsensus fields. It's not good for notifications because
third-party clients would probably expect to see the same format. Also, using
completely different Block representation in result is probably making our
client a bit weaker as this representation is harder to use with other neo-go
components.

So use the same approach we took for Transactions and wrap block.Base which is
to be serialized in proper way.
2020-05-14 17:28:14 +03:00
..
testdata rpc: update test chain 2020-04-06 09:31:09 +03:00
prometheus.go rpc: reuse handlers map for prometheus metrics 2020-03-25 15:25:12 +03:00
server.go rpc/server: add notification filters 2020-05-14 17:28:14 +03:00
server_helper_test.go rpc/server: add notification subscription 2020-05-13 17:17:41 +03:00
server_test.go rpc/block: rework the way Block is JSONized 2020-05-14 17:28:14 +03:00
subscription.go rpc/server: add notification filters 2020-05-14 17:28:14 +03:00
subscription_test.go rpc/block: rework the way Block is JSONized 2020-05-14 17:28:14 +03:00