neo-go/pkg/core
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
..
block rpc: adjust getblock RPC-call JSON fields names 2020-07-09 17:34:53 +03:00
blockchainer consensus: apply policy during verifyBlock 2020-08-04 10:59:09 +03:00
dao core: use raw stack items in application logs 2020-07-31 16:07:16 +03:00
interop interop: add Secp2k to the list of crypto interops 2020-07-29 13:43:33 +03:00
mempool transaction: drop old attributes 2020-07-10 20:40:27 +03:00
mpt mpt: fix extension node cache invalidation 2020-07-30 12:42:15 +03:00
native core: fix bug with policy.MaxVerificationGas 2020-08-04 17:52:34 +03:00
state core: use raw stack items in application logs 2020-07-31 16:07:16 +03:00
storage Merge pull request #1239 from nspcc-dev/store_nep5_with_id 2020-07-30 12:56:19 +03:00
test_data rpc: adjust getrawtransaction RPC-call JSON fields names 2020-07-15 14:44:13 +03:00
transaction Merge pull request #1169 from nspcc-dev/neo3/rpc/fields_names_adjustment 2020-07-15 18:24:54 +03:00
blockchain.go Merge pull request #1254 from nspcc-dev/native/policy/maxblocksystemfee 2020-08-04 13:13:06 +03:00
blockchain_test.go core, vm: store VMState as byte instead of string 2020-07-29 10:14:08 +03:00
doc.go core: add Blockchain event subscription mechanism 2020-05-25 00:27:39 +03:00
gas_price.go *: move syscall handling out of VM 2020-07-29 13:41:08 +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: decouple native contracts from interop service 2020-07-29 10:33:18 +03:00
interop_neo.go Merge pull request #1241 from nspcc-dev/fix/string 2020-08-03 18:10:27 +03:00
interop_neo_test.go manifest: remove EntryPoint from manifest 2020-07-27 11:08:01 +03:00
interop_system.go core: simplify System.Contract.Call* parameter handling 2020-07-30 12:37:32 +03:00
interop_system_test.go core: simplify System.Contract.Call* parameter handling 2020-07-30 12:37:32 +03:00
interops.go core: allow to restrict creating callbacks from syscalls 2020-07-29 13:41:08 +03:00
interops_test.go block/transaction: add network magic into the hash 2020-06-18 12:39:50 +03:00
native_contract_test.go core: use raw stack items in application logs 2020-07-31 16:07:16 +03:00
native_policy_test.go core: fix native policy tests 2020-08-04 15:05:31 +03:00
opcode_price.go core: add prices for TRY* opcodes 2020-07-29 13:41:08 +03:00
prometheus.go core: add state height to prometheus metrics 2020-07-30 12:42:15 +03:00
util.go core: fix CalculateNetworkFee() for multisig contracts 2020-07-13 18:05:46 +03:00
util_test.go core: rename Neo.Crypto.CheckMultisig to Neo.Crypto.CheckMultisigWithECDsaSecp256r1 2020-07-14 16:19:12 +03:00