From 6230254b021a2b60c0745f01e16b263df75dfdea Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Wed, 15 Apr 2020 11:07:29 +0200 Subject: [PATCH] trie: fix concurrent usage of secKeyBuf, ref #20920 # Conflicts: # trie/database.go --- trie/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trie/database.go b/trie/database.go index 0bc4b5fc1..c629a2353 100644 --- a/trie/database.go +++ b/trie/database.go @@ -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 {