neo-go/pkg
Anna Shaleva edfca68a17 rpc: refactor invokecontractverify
In `(c *Client) AddNetworkFee` we define network fee for contract
witness verification via `invokecontractverify` RPC call, and that's the
initial purpose of this RPC method. But it was not implemented
correctly. It used `System.Contract.Call` instead of beheiving like
`initVerificationVM`.

During real contract witness verification the whole contract's script is
loaded into VM, and then we jump to the `verify` method. Thus, to define
exact contract verification price, we should act like this (and not just
perform `System.Contract.Call` of `verify` method).

Tests are added.

This bug is the reason of adding extra GAS (c.notary.extraVerifyFee) to
pre-calculated value in
https://github.com/nspcc-dev/neofs-node/pull/404/files#diff-639db437ca2578db46c9e8cbf18f9aa01f8ca5aee30e0fa7e70ba0354822d7b3R237
2021-03-12 18:59:20 +03:00
..
compiler native: allow to set oracle request price 2021-03-11 10:12:30 +03:00
config Merge pull request #1484 from nspcc-dev/oracle/neofs 2021-03-09 17:30:15 +03:00
consensus core: refactor Neo.Crypto.CheckMultisigWithECDsaSecpr1 2021-03-10 21:46:05 +03:00
core rpc: refactor invokecontractverify 2021-03-12 18:59:20 +03:00
crypto core: use Neo.Crypto.CheckSig for standard signature verification 2021-03-10 21:45:58 +03:00
encoding encoding: panic on nil slice 2021-03-09 12:11:26 +03:00
interop native: allow to set oracle request price 2021-03-11 10:12:30 +03:00
io *: upgrade tests to use T.Cleanup() 2021-03-01 17:08:00 +03:00
network payload: adapt notary payloads to new hashing too 2021-03-12 14:14:22 +03:00
rpc rpc: refactor invokecontractverify 2021-03-12 18:59:20 +03:00
services core: use Neo.Crypto.CheckSig for standard signature verification 2021-03-10 21:45:58 +03:00
smartcontract context: s/hex/data/ for JSON 2021-03-12 13:10:24 +03:00
util native/vm: add script check for deployed contracts 2021-02-09 22:31:26 +03:00
vm emit: allow to emit big.Int 2021-03-11 10:12:30 +03:00
wallet core: refactor Neo.Crypto.CheckMultisigWithECDsaSecpr1 2021-03-10 21:46:05 +03:00