Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/rawdb: fix double-lock causing hang (#24189) (#575)
commit ethereum/go-ethereum@66a908c. Recursive read-locking is prohibited in RWMutex which can lead to deadlock. ReadCanonicalHash internally calls ReadAncients which cause recursive read-locking. This commit reads the block directly from leveldb/pebbledb in case block is not in ancient without using helper function ReadCanonicalHash. Co-authored-by: Martin Holst Swende <[email protected]> Co-authored-by: Felix Lange <[email protected]>
- Loading branch information