neoneo-go/pkg
Anna Shaleva 7c6cdcbcc9 core: fix bug with policy.MaxVerificationGas
In 121c9664b we should take into account isValid flag of
NativePolicy contract while retrieving MaxVerificationGas native
policy value. Otherwise we won't be able to get MaxVerificationGas
after the node was restarted, because this value is not truly
stored along with the other native policy values.

This commit fixes bug with headers verification after the  node
restarting with an existing storage:

```
2020-08-03T12:52:56.158+0300	WARN	failed processing headers	{"error": "vm failed to execute the script with error: error encountered at instruction 0 (PUSHDATA1): gas limit is exceeded", "errorVerbose": "vm failed to execute the script with error: error encountered at instruction 0 (PUSHDATA1): gas limit is exceeded\ngithub.com/nspcc-dev/neo-go/pkg/core.(*Blockchain).verifyHashAgainstScript\n\t/home/neospcc/Documents/GitProjects/nspcc-dev/neo-go/pkg/core/blockchain.go:1454\ngithub.com/nspcc-dev/neo-go/pkg/core.(*Blockchain).verifyHeaderWitnesses\n\t/home/neospcc/Documents/GitProjects/nspcc-dev/neo-go/pkg/core/blockchain.go:1517\ngithub.com/nspcc-dev/neo-go/pkg/core.(*Blockchain).verifyHeader\n\t/home/neospcc/Documents/GitProjects/nspcc-dev/neo-go/pkg/core/blockchain.go:1175\ngithub.com/nspcc-dev/neo-go/pkg/core.(*Blockchain).addHeaders\n\t/home/neospcc/Documents/GitProjects/nspcc-dev/neo-go/pkg/core/blockchain.go:484\ngithub.com/nspcc-dev/neo-go/pkg/core.(*Blockchain).AddHeaders\n\t/home/neospcc/Documents/GitProjects/nspcc-dev/neo-go/pkg/core/blockchain.go:453\ngithub.com/nspcc-dev/neo-go/pkg/network.(*Server).handleHeadersCmd\n\t/home/neospcc/Documents/GitProjects/nspcc-dev/neo-go/pkg/network/server.go:454\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1373"}
```
2020-08-04 17:52:34 +03:00
..
compiler Merge pull request #1242 from nspcc-dev/fix/json 2020-08-04 12:59:47 +03:00
config config: allow to specify config path directly 2020-07-03 11:47:56 +03:00
consensus consensus: apply policy during verifyBlock 2020-08-04 10:59:09 +03:00
core core: fix bug with policy.MaxVerificationGas 2020-08-04 17:52:34 +03:00
crypto keys: fix failing Secp256k1 test 2020-07-25 12:01:12 +03:00
encoding *: change address to the new format 2020-06-17 15:58:21 +03:00
internal core: rename Neo.Crypto.Verify to Neo.Crypto.VerifyWithECDsaSecp256r1 2020-07-14 16:19:12 +03:00
interop interop: update AppCall comment 2020-07-27 13:00:35 +03:00
io io: make maxArraySize public 2020-06-27 12:18:56 +03:00
network Merge pull request #1254 from nspcc-dev/native/policy/maxblocksystemfee 2020-08-04 13:13:06 +03:00
rpc core: use raw stack items in application logs 2020-07-31 16:07:16 +03:00
smartcontract Merge pull request #1242 from nspcc-dev/fix/json 2020-08-04 12:59:47 +03:00
util util: fixed typo in method description 2020-05-20 23:26:51 +03:00
vm Merge pull request #1242 from nspcc-dev/fix/json 2020-08-04 12:59:47 +03:00
wallet Merge pull request #1169 from nspcc-dev/neo3/rpc/fields_names_adjustment 2020-07-15 18:24:54 +03:00