neo-go/pkg/core
Roman Khimov a9abd3d841 core: fix wrong endian used in interop functions
C# uses ToArray() or UintXXX(bytes) here which interprets hashes as they
should be interpreted (BE, although they always convert to LE when converting
to String just for the fun of it). It leads to state difference for us at
block 2025204 where even though we have the same value for the key, the key
itself differs, ours:

dd2b538e2a0c1db1ae5061c15be14f916bd1e678e512ffcda6d9499d8e7fe97ee71fd6b8004583d9afe09cc4dadbd5deb63d01e061009b7cffdaa674beae0f930ebe6085af900093e5fe56b34a5c220ccdcf6efc336fc5000000000000000000000000000000000010

theirs:

dd2b538e2a0c1db1ae5061c15be14f916bd1e67861e0013db6ded5dbdac49ce0afd9834500b8d61fe77ee97f8e9d49d9a6cdff12e5009b7cffdaa674beae0f930ebe6085af900093e5fe56b34a5c220ccdcf6efc336fc5000000000000000000000000000000000010

In this key there is a tx hash encoded
(e512ffcda6d9499d8e7fe97ee71fd6b84583d9afe09cc4dadbd5deb63d01e061 in LE used
by all the tools like neoscan).

I love Neo.
2020-03-05 19:44:09 +03:00
..
block *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
mempool *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
state rpc: implement getnep5transfers RPC 2020-03-05 18:22:40 +03:00
storage core: track NEP5 transfers 2020-03-05 18:22:40 +03:00
test_data Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00
transaction Merge pull request #706 from nspcc-dev/feature/transfer 2020-03-05 12:28:01 +03:00
blockchain.go rpc: implement getnep5transfers RPC 2020-03-05 18:22:40 +03:00
blockchain_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
blockchainer.go rpc: implement getnep5transfers RPC 2020-03-05 18:22:40 +03:00
cacheddao.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
cacheddao_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
dao.go rpc: implement getnep5transfers RPC 2020-03-05 18:22:40 +03:00
dao_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
gas_price.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
gas_price_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +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,rpc: add NEP5 contract to testdata 2020-03-05 18:22:40 +03:00
interop_neo.go core: fix wrong endian used in interop functions 2020-03-05 19:44:09 +03:00
interop_neo_test.go core: fix wrong endian used in interop functions 2020-03-05 19:44:09 +03:00
interop_system.go core: fix wrong endian used in interop functions 2020-03-05 19:44:09 +03:00
interops.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
interops_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
prometheus.go core: refactor out MemPool 2020-01-16 10:16:24 +03:00
spent_coin_state.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
spent_coin_state_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
uint32.go *: goimports 2019-12-17 14:51:28 +03:00
unspent_coin_state.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
unspent_coint_state_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
util.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
util_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00