neo-go/pkg
Furetur f5794e91a2 vm: implement OnExecHook
Refs #3415

This commit introduces a small new change
that implements the Hooks API and more
specifically the OnExecHook. This feature
can be used to implement test coverage
collection, tracing, breakpoints, and etc.

To be more specific, this commit:

1. adds a new `hooks` field to the `VM`
   (this field contains the OnExecHook
    function)

2. sets the default value of this hook
   to be a NOP function

3. adds the `VM.SetOnExecHook` method

Signed-off-by: Furetur <furetur@gmail.com>
2024-07-03 12:49:09 +03:00
..
compiler native: autogenerate nativehashes package 2024-05-14 09:39:53 +03:00
config config, native: introduce Cockatrice hard-fork 2024-04-25 13:26:54 +03:00
consensus consensus: use better dbFT 2024-03-25 19:21:51 +03:00
core core: move P2PNotary node role out of P2PSigExtensions 2024-05-21 12:10:47 +03:00
crypto crypto: export GetSignedData function 2024-05-13 09:33:42 +03:00
encoding *: drop go 1.18 support in doc and build targets 2023-10-12 17:59:42 +03:00
interop core: move P2PNotary node role out of P2PSigExtensions 2024-05-21 12:10:47 +03:00
io *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
neorpc rpcsrv: add SessionEnabled, MaxIteratorResultItems to getversion 2024-04-03 22:42:14 +03:00
neotest crypto: add StringCompressed() for PublicKey 2024-04-11 15:24:46 +03:00
network *: add Copy() to transaction.Transaction and payload.P2PNotaryRequest 2024-04-28 00:59:15 +05:30
rpcclient Merge pull request #3438 from nspcc-dev/unwrap-fault-exception 2024-05-17 10:24:26 +03:00
services native: bind CryptoLib's verifyWithECDsa changes to Cockatrice 2024-05-17 15:52:00 +03:00
smartcontract smartcontract: ensure nil ParameterContext Item's script is marshallable 2024-04-18 13:55:05 +03:00
util *: replace slice.Copy with bytes.Clone 2024-03-05 13:54:10 +03:00
vm vm: implement OnExecHook 2024-07-03 12:49:09 +03:00
wallet crypto: add StringCompressed() for PublicKey 2024-04-11 15:24:46 +03:00