neo-go/pkg/core/storage
Roman Khimov ac5d2f94d3 storage: fix BoltDB batched Put()
It must copy both the value and the key because they can be reused for other
purposes between Put() and PutBatch(). This actually happens with values in
headers processing, leading to wrong data being written into the DB.

Extend the batch test to check for that.
2019-09-23 09:27:18 +03:00
..
boltdb_store.go storage: fix BoltDB batched Put() 2019-09-23 09:27:18 +03:00
boltdb_store_test.go storage: fix BoltDB batched Put() 2019-09-23 09:27:18 +03:00
helpers.go io: move BinReader/BinWriter there, redo Serializable with it 2019-09-16 23:39:51 +03:00
leveldb_store.go storage: close function 2019-09-16 18:52:47 +03:00
leveldb_store_test.go Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00
memory_store.go storage: add seek implementation 2019-09-18 18:20:41 +03:00
memory_store_test.go storage: add seek implementation 2019-09-18 18:20:41 +03:00
redis_store.go storage: close function 2019-09-16 18:52:47 +03:00
redis_store_test.go storage: close function 2019-09-16 18:52:47 +03:00
store.go storage: close function 2019-09-16 18:52:47 +03:00
store_config.go storage: add boltDB support 2019-09-14 10:28:43 +03:00
store_test.go Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00