trie: fix concurrent usage of secKeyBuf, ref #20920

# Conflicts:
#	trie/database.go
This commit is contained in:
Martin Holst Swende 2020-04-15 11:07:29 +02:00 committed by Igor Mandrigin
parent ef737c457a
commit 6230254b02

View File

@ -58,7 +58,7 @@ var (
var secureKeyPrefix = []byte("secure-key-")
// secureKeyLength is the length of the above prefix + 32byte hash.
const secureKeyLength = 11 + 32
const secureKeyLength = secureKeyPrefixLength + 32
// DatabaseReader wraps the Get method of a backing store for the trie.
type DatabaseReader interface {