Use length of secureKeyPrefix

Signed-off-by: SigmoiD <alphabet@hotmail.co.kr>
This commit is contained in:
SigmoiD 2019-04-07 03:19:32 +09:00
parent bca140b73d
commit c12d60add0

View file

@ -55,7 +55,7 @@ var (
var secureKeyPrefix = []byte("secure-key-")
// secureKeyLength is the length of the above prefix + 32byte hash.
const secureKeyLength = 11 + 32
const secureKeyLength = len(secureKeyPrefix) + 32
// Database is an intermediate write layer between the trie data structures and
// the disk database. The aim is to accumulate trie writes in-memory and only