neoneo-go/pkg/core/storage
Roman Khimov 4395cea344 storage: fix reading overlapping hash blocks from the DB
In the unlikely event of overlapping hash block written to the DB we might end
up with wrong hash list. That happened to me for some reason when synching
with the testnet leading to the following keys with respective values:
  150000 -> 2000 hashes
  152000 -> 2000 hashes
  153999 -> 2000 hashes

Reading it hashes number 153999 and 154000 got the same values and the chain
couldn't sync correctly.
2019-09-11 20:33:41 +03:00
..
helpers.go storage: fix reading overlapping hash blocks from the DB 2019-09-11 20:33:41 +03:00
leveldb_store.go storage: multiple DB support and Redis support 2019-09-10 17:22:21 +03:00
leveldb_store_test.go Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00
memory_store.go store: Fix DataRace in MemoryStore 2019-08-27 16:48:30 +03:00
memory_store_test.go [FIX] Formatting and code-style (#118) 2019-01-25 12:20:35 +01:00
README.md Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00
redis_store.go storage: multiple DB support and Redis support 2019-09-10 17:22:21 +03:00
redis_store_test.go storage: redis db unit test 2019-09-10 17:22:45 +03:00
store.go storage: multiple DB support and Redis support 2019-09-10 17:22:21 +03:00
store_config.go storage: multiple DB support and Redis support 2019-09-10 17:22:21 +03:00
store_test.go Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00

Storage