neoneo-go/pkg
Roman Khimov f0fbb2d8ff core: prevent panic on forced exit
If we're to close the Blockchain while it's storing a block this might happen:

panic: assignment to entry in nil map

goroutine 63 [running]:
github.com/nspcc-dev/neo-go/pkg/core/storage.(*MemoryStore).put(...)
        /home/rik/dev/neo-go/pkg/core/storage/memory_store.go:53
github.com/nspcc-dev/neo-go/pkg/core/storage.(*MemCachedStore).Persist(0xc000673a40, 0x0, 0x0, 0x0)
        /home/rik/dev/neo-go/pkg/core/storage/memcached_store.go:118 +0x245
github.com/nspcc-dev/neo-go/pkg/core/dao.(*Simple).Persist(0xc003dbdcc0, 0xc003b18900, 0xc002505538, 0xc001c510e0)
        /home/rik/dev/neo-go/pkg/core/dao/dao.go:543 +0x2e
github.com/nspcc-dev/neo-go/pkg/core/dao.(*Cached).Persist(0xc003b189c0, 0xc000240000, 0x0, 0x0)
        /home/rik/dev/neo-go/pkg/core/dao/cacheddao.go:169 +0x756
github.com/nspcc-dev/neo-go/pkg/core.(*Blockchain).storeBlock(0xc0001f4000, 0xc003611040, 0x0, 0x10)
        /home/rik/dev/neo-go/pkg/core/blockchain.go:647 +0xfa2
github.com/nspcc-dev/neo-go/pkg/core.(*Blockchain).AddBlock(0xc0001f4000, 0xc003611040, 0x0, 0x0)
        /home/rik/dev/neo-go/pkg/core/blockchain.go:447 +0xee
github.com/nspcc-dev/neo-go/pkg/network.(*blockQueue).run(0xc0006f4120)
        /home/rik/dev/neo-go/pkg/network/blockqueue.go:48 +0x158
created by github.com/nspcc-dev/neo-go/pkg/network.(*Server).Start
        /home/rik/dev/neo-go/pkg/network/server.go:179 +0x2b5
2020-06-18 21:35:17 +03:00
..
compiler block/transaction: add network magic into the hash 2020-06-18 12:39:50 +03:00
config netmode: use non-zero unittest network 2020-06-18 12:10:12 +03:00
consensus block/transaction: add network magic into the hash 2020-06-18 12:39:50 +03:00
core core: prevent panic on forced exit 2020-06-18 21:35:17 +03:00
crypto smartcontract: use new VerifiableDecodable for ParameterContext 2020-06-18 12:12:56 +03:00
encoding *: change address to the new format 2020-06-17 15:58:21 +03:00
internal block/transaction: add network magic into the hash 2020-06-18 12:39:50 +03:00
interop compiler: implement missing System.Contract.* interops 2020-06-17 11:38:34 +03:00
io *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
network network: fix inverted logic of address addition to the pool 2020-06-18 21:34:45 +03:00
rpc core: process NEP5 transfers emitted by Native.onPersist 2020-06-18 16:38:08 +03:00
smartcontract block/transaction: add network magic into the hash 2020-06-18 12:39:50 +03:00
util util: fixed typo in method description 2020-05-20 23:26:51 +03:00
vm vm: make (*VM).GasLimit public 2020-06-16 15:13:20 +03:00
wallet *: change address to the new format 2020-06-17 15:58:21 +03:00