neoneo-go/pkg/core
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 rpc/block: rework the way Block is JSONized 2020-05-26 11:36:47 +03:00
blockchainer core: add Blockchain event subscription mechanism 2020-05-25 00:27:39 +03:00
dao core: switch to the new voting system (via native NEO contract) 2020-04-27 16:06:50 +03:00
interop core: implement System.Contract.Call interop 2020-05-07 14:39:06 +03:00
mempool core: add senders' fees monitor to mempool 2020-05-20 23:34:25 +03:00
native core: add witness check to nep5 transfer method 2020-05-20 23:34:27 +03:00
state util: implement Serializable interface over Uint160 2020-05-04 11:49:14 +03:00
storage core/native: move NextValidators storage to NEO contract 2020-04-27 12:30:39 +03:00
test_data Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00
transaction transaction: add json.Unmarshaler to Attribute 2020-05-26 11:36:47 +03:00
blockchain.go core: improve and fix locking in storeBlock 2020-05-26 11:36:47 +03:00
blockchain_test.go core: add Blockchain event subscription mechanism 2020-05-25 00:27:39 +03:00
doc.go core: add Blockchain event subscription mechanism 2020-05-25 00:27:39 +03:00
gas_price.go vm,compiler: replace APPCALL with System.Contract.Call 2020-05-07 14:52:03 +03:00
gas_price_test.go core: use opcodes instead of raw bytes in tests 2020-04-23 10:37:01 +03:00
header_hash_list.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
helper_test.go core: ensure we produce correct blocks for tests 2020-05-24 23:52:54 +03:00
interop_neo.go vm: hide GetContextScriptHash() method 2020-05-04 11:53:31 +03:00
interop_neo_test.go core: change block.ConsensusData to neo3 format 2020-04-27 17:57:37 +03:00
interop_system.go core: implement System.Contract.Call interop 2020-05-07 14:39:06 +03:00
interops.go vm,compiler: replace APPCALL with System.Contract.Call 2020-05-07 14:52:03 +03:00
interops_test.go core: change block.ConsensusData to neo3 format 2020-04-27 17:57:37 +03:00
native_contract_test.go core: implement System.Contract.Call interop 2020-05-07 14:39:06 +03:00
opcode_price.go core: add SystemFee and NetworkFee to transaction 2020-05-20 23:26:48 +03:00
prometheus.go core: refactor out MemPool 2020-01-16 10:16:24 +03:00
spent_coin.go core: move (un)SpentCoin structs into the state package 2020-03-11 12:22:52 +03:00
util.go core: add SystemFee and NetworkFee to transaction 2020-05-20 23:26:48 +03:00
util_test.go core: add SystemFee and NetworkFee to transaction 2020-05-20 23:26:48 +03:00