neo-go/pkg/rpc/response/result
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
..
account_state.go core/native: move Votes from account to native NEO state 2020-04-27 12:30:39 +03:00
application_log.go rpc/server: add notification subscription 2020-05-26 11:36:47 +03:00
asset_state.go rpc: fix json marshalling of result.AssetState 2020-03-23 17:44:15 +03:00
block.go rpc/block: rework the way Block is JSONized 2020-05-26 11:36:47 +03:00
block_header.go core: change block.ConsensusData to neo3 format 2020-04-27 17:57:37 +03:00
claimable.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
contract_state.go rpc: fix wrong script marshalling in getcontractstate RPC server 2020-03-24 14:55:20 +03:00
invoke.go rpc: fix stack field name for invocation results 2020-03-28 13:59:42 +03:00
nep5.go core: update block timestamp format 2020-04-27 17:56:44 +03:00
peers.go rpc: move result package into response 2020-02-21 15:12:04 +03:00
peers_test.go rpc: move result package into response 2020-02-21 15:12:04 +03:00
tx_output.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
tx_raw_output.go core: add SystemFee and NetworkFee to transaction 2020-05-20 23:26:48 +03:00
unclaimed.go core: move Blockchainer interface to a separate package 2020-04-11 10:56:36 +03:00
unspents.go core: move Blockchainer interface to a separate package 2020-04-11 10:56:36 +03:00
validate_address.go rpc: move result package into response 2020-02-21 15:12:04 +03:00
validator.go core: switch to the new voting system (via native NEO contract) 2020-04-27 16:06:50 +03:00
version.go rpc: move result package into response 2020-02-21 15:12:04 +03:00