bsc/core/rawdb
gary rong 6283391c99
core/rawdb: improve table database (#20703)
This PR fixes issues in TableDatabase.

TableDatabase is a wrapper of underlying ethdb.Database with an additional prefix.
The prefix is applied to all entries it maintains. However when we try to retrieve entries
from it we don't handle the key properly. In theory the prefix should be truncated and
only user key is returned. But we don't do it in some cases, e.g. the iterator and batch
replayer created from it. So this PR is the fix to these issues.
2020-03-18 13:15:49 +01:00
..
accessors_chain_test.go core/rawdb: check hash before return data from ancient db (#20195) 2019-11-19 12:32:57 +02:00
accessors_chain.go core/rawdb: check hash before return data from ancient db (#20195) 2019-11-19 12:32:57 +02:00
accessors_indexes_test.go core: lookup txs by block number instead of block hash (#19431) 2019-04-25 17:24:55 +03:00
accessors_indexes.go core: concurrent database reinit from freezer dump 2019-05-27 15:48:30 +03:00
accessors_metadata.go cmd/geth, core/rawdb: seamless freezer consistency, friendly removedb 2019-05-16 17:01:56 +03:00
database.go core: fix staticcheck warnings (#20384) 2019-11-27 09:50:30 +01:00
freezer_reinit.go core/rawdb: fix reinit regression caused by the hash check PR 2019-11-27 14:41:47 +02:00
freezer_table_test.go build: use golangci-lint (#20295) 2019-11-18 10:49:17 +02:00
freezer_table.go core, metrics, p2p: switch some invalid counters to gauges 2019-09-10 14:39:07 +03:00
freezer.go core, metrics, p2p: switch some invalid counters to gauges 2019-09-10 14:39:07 +03:00
schema.go cmd/geth, core/rawdb: seamless freezer consistency, friendly removedb 2019-05-16 17:01:56 +03:00
table_test.go core/rawdb: improve table database (#20703) 2020-03-18 13:15:49 +01:00
table.go core/rawdb: improve table database (#20703) 2020-03-18 13:15:49 +01:00