neo-go/pkg/core
Roman Khimov 294a70646e core: lock block addition on state jump
It should be performed before we're able to process blocks or before we
shutdown (which uses addition lock), fix

panic: assignment to entry in nil map

goroutine 5755 [running]:
github.com/nspcc-dev/neo-go/pkg/core/storage.(*MemoryStore).drop(...)
        /home/rik/dev/neo-go/pkg/core/storage/memory_store.go:74
github.com/nspcc-dev/neo-go/pkg/core/storage.(*MemoryStore).PutChangeSet(0xc00093e700, 0xc0002051a0, 0xc000205200, 0x1, 0x1)
        /home/rik/dev/neo-go/pkg/core/storage/memory_store.go:100 +0x25c
github.com/nspcc-dev/neo-go/pkg/core/storage.(*MemoryStore).PutBatch(...)
        /home/rik/dev/neo-go/pkg/core/storage/memory_store.go:90
github.com/nspcc-dev/neo-go/pkg/core.(*Blockchain).removeOldStorageItems(0xc000206a00)
        /home/rik/dev/neo-go/pkg/core/blockchain.go:495 +0x33a
created by github.com/nspcc-dev/neo-go/pkg/core.(*Blockchain).jumpToStateInternal
        /home/rik/dev/neo-go/pkg/core/blockchain.go:553 +0x68a
FAIL    github.com/nspcc-dev/neo-go/pkg/core    52.084s
2022-01-14 20:25:39 +03:00
..
block *: store application long along with tx/block 2021-12-09 15:39:26 +03:00
blockchainer core: store NEP-11 transfers, add accessor functions 2021-11-18 00:09:10 +03:00
chaindump block: drop Network from the Header 2021-03-26 13:45:18 +03:00
dao storage: allow to seek starting from some point 2022-01-13 12:44:29 +03:00
fee vm: add PACKMAP/PACKSTRUCT, extend UNPACK 2021-11-12 17:19:59 +03:00
interop interop: move invocation counter from VM to Context 2021-11-20 21:57:41 +03:00
mempool mempool: use capacity parameter to avoid map reallocations 2021-12-01 21:36:25 +03:00
mempoolevent core: move mempool.Event to a separate package 2021-06-01 12:24:28 +03:00
mpt statesync: copy state by swapping prefix 2021-11-24 16:22:27 +03:00
native nativetest: migrate Notary contract tests to neotest 2022-01-14 17:56:10 +03:00
state *: use NEP-XX naming consistently in docs/comments 2021-11-19 12:58:46 +03:00
stateroot storage: allow to seek starting from some point 2022-01-13 12:44:29 +03:00
statesync storage: allow to seek starting from some point 2022-01-13 12:44:29 +03:00
storage storage: allow to seek backwards 2022-01-13 12:44:29 +03:00
test_data nativetest: migrate Oracle contract tests to neotest 2022-01-14 17:56:10 +03:00
transaction transaction: microoptimize Hash() 2021-12-02 14:48:35 +03:00
bench_test.go rpc: refactor calculatenetworkfee handler 2021-10-25 19:07:25 +03:00
blockchain.go core: lock block addition on state jump 2022-01-14 20:25:39 +03:00
blockchain_test.go nativetest: migrate NEO contract tests to neotest 2022-01-14 17:56:10 +03:00
doc.go core: add Blockchain event subscription mechanism 2020-05-25 00:27:39 +03:00
helper_test.go nativetest: migrate NEO contract tests to neotest 2022-01-14 17:56:10 +03:00
interop_system.go storage: allow to seek starting from some point 2022-01-13 12:44:29 +03:00
interop_system_test.go nativetest: migrate Management contract tests to neotest 2022-01-14 17:56:04 +03:00
interops.go interop: implement System.Runtime.GetRandom 2021-07-15 16:00:01 +03:00
interops_test.go core: remove conflicting transactions wrt MaxTraceableBlocks 2021-08-18 13:31:47 +03:00
native_contract_test.go nativetest: migrate Management contract tests to neotest 2022-01-14 17:56:04 +03:00
native_designate_test.go nativetest: migrate Designation contract tests to neotest 2022-01-14 16:47:31 +03:00
native_management_test.go nativetest: migrate Management contract tests to neotest 2022-01-14 17:56:04 +03:00
native_neo_test.go nativetest: migrate NEO contract tests to neotest 2022-01-14 17:56:10 +03:00
native_policy_test.go nativetest: migrate Policy contract tests to neotest 2022-01-14 16:34:33 +03:00
notary_test.go *: fix tests failing due to path.Join usage 2021-11-29 11:11:09 +03:00
oracle_test.go nativetest: migrate Oracle contract tests to neotest 2022-01-14 17:56:10 +03:00
prometheus.go stateroot: move state-root related logic to core/stateroot 2021-03-09 13:48:29 +03:00
stateroot_test.go *: fix tests failing due to path.Join usage 2021-11-29 11:11:09 +03:00
statesync_test.go storage: allow to seek starting from some point 2022-01-13 12:44:29 +03:00
util.go core/block: add Nonce field to header 2021-07-15 15:58:49 +03:00
util_test.go core/block: add Nonce field to header 2021-07-15 15:58:49 +03:00