neoneo-go/pkg/core/block
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
..
block.go rpc/block: rework the way Block is JSONized 2020-05-26 11:36:47 +03:00
block_base.go rpc/block: rework the way Block is JSONized 2020-05-26 11:36:47 +03:00
block_test.go rpc/block: rework the way Block is JSONized 2020-05-26 11:36:47 +03:00
consensus_data.go rpc/block: rework the way Block is JSONized 2020-05-26 11:36:47 +03:00
header.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
header_test.go core: change block.ConsensusData to neo3 format 2020-04-27 17:57:37 +03:00
helper_test.go testserdes: implement helpers for encode/decode routines 2020-03-27 10:27:46 +03:00