neoneo-go/pkg
Roman Khimov a7457d08a1 vm/core: add ID support for SYSCALL, redo interop registration
This solves two problems:
 * adds support for shortened SYSCALL form that uses IDs (similar to #434, but
   for NEO 2.0, supporting both forms), which is important for compatibility
   with C# node and mainnet chain that uses it from some height
 * reworks interop plugging to use callbacks rather than appending to the map,
   these map mangling functions are clearly visible in the VM profiling
   statistics and we want spawning a VM to be fast, so it makes sense
   optimizing it. This change moves most of the work to the init() phase
   making VM setup cheaper.

Caveats:
 * InteropNameToID accepts `[]byte` because that's the thing we have in
   SYSCALL processing and that's the most often usecase for it, it leads to
   some conversions in other places but that's acceptable because those are
   either tests or init()
 * three getInterop functions are: `getDefaultVMInterop`, `getSystemInterop`
   and `getNeoInterop`

Our 100K (1.4M->1.5M) block import time improves by ~4% with this change.
2019-12-19 13:35:42 +03:00
..
compiler Merge pull request #546 from nspcc-dev/write-optimizations 2019-12-06 19:40:38 +03:00
consensus consensus: fix payload sign test 2019-12-13 12:09:51 +03:00
core vm/core: add ID support for SYSCALL, redo interop registration 2019-12-19 13:35:42 +03:00
crypto io: rename Read/WriteBytes to Read/WriteB 2019-12-12 20:19:50 +03:00
internal internal: moved testutil method to internal package 2019-12-11 13:14:43 +03:00
interop fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
io io: remove ReadLE/BE and WriteLE/BE 2019-12-13 11:38:28 +03:00
network *: goimports 2019-12-17 14:51:28 +03:00
rpc *: goimports 2019-12-17 14:51:28 +03:00
smartcontract io: rename Read/WriteBytes to Read/WriteB 2019-12-12 20:19:50 +03:00
util io: add type-specific read/write methods 2019-12-12 20:19:50 +03:00
vm vm/core: add ID support for SYSCALL, redo interop registration 2019-12-19 13:35:42 +03:00
wallet crypto: add invalid testcase 2019-11-29 11:03:03 +03:00