neo-go/pkg/rpc/client
Roman Khimov 7633439845 rpc/block: rework the way Block is JSONized
Our block.Block was JSONized in a bit different fashion than result.Block in
its NextConsensus and Index 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 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.Block which is
to be serialized in proper way.

Fix `Script` JSONization along the way, 3.0 node wraps it within `witnesses`.
2020-05-26 11:36:47 +03:00
..
client.go rpc/client: add minimalistic websocket client 2020-05-04 16:54:35 +03:00
doc.go rpc: implement missing RPC client methods 2020-03-12 15:56:59 +03:00
doc_test.go rpc: update client documentation 2020-03-03 18:59:21 +03:00
neoscan.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
nep5.go core: add witness check to nep5 transfer method 2020-05-20 23:34:27 +03:00
rpc.go core: add SystemFee and NetworkFee to transaction 2020-05-20 23:26:48 +03:00
rpc_test.go rpc/block: rework the way Block is JSONized 2020-05-26 11:36:47 +03:00
wsclient.go rpc/client: add support for notification filters 2020-05-26 11:36:47 +03:00
wsclient_test.go rpc/block: rework the way Block is JSONized 2020-05-26 11:36:47 +03:00