New config option - disable height hint cache queries

typo broke test


leftover junk


Fix to comply with linter 

and also, D'oh conditional
This commit is contained in:
Andreas M. Antonopoulos
2020-06-26 21:40:00 -04:00
parent 1de7e30cd1
commit 61ea9fad78
8 changed files with 54 additions and 13 deletions

View File

@@ -40,7 +40,10 @@ func initHintCache(t *testing.T) *chainntnfs.HeightHintCache {
if err != nil {
t.Fatalf("unable to create db: %v", err)
}
hintCache, err := chainntnfs.NewHeightHintCache(db)
testCfg := chainntnfs.Config{
HeightHintCacheQueryDisable: false,
}
hintCache, err := chainntnfs.NewHeightHintCache(testCfg, db)
if err != nil {
t.Fatalf("unable to create hint cache: %v", err)
}