core/rawdb: fix transaction indexing/unindexing hashing error (#22457)

* core/rawdb: more verbose error logs + better hashing

* core/rawdb: add failing testcase

* core/rawdb: properly hash transactions while indexing/unindexing

* core/rawdb: exit on error + better log msg
This commit is contained in:
Martin Holst Swende
2021-03-16 11:15:14 +01:00
committed by GitHub
parent 7cbf1d70a7
commit 94ab4ea341
3 changed files with 65 additions and 38 deletions

View File

@ -23,6 +23,7 @@ type listIterator struct {
}
// NewListIterator creates an iterator for the (list) represented by data
// TODO: Consider removing this implementation, as it is no longer used.
func NewListIterator(data RawValue) (*listIterator, error) {
k, t, c, err := readKind(data)
if err != nil {