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 committed 2020-06-26 21:40:00 -04:00
1 parent 1de7e30cd1
commit 61ea9fad78
8 files changed
+54 -13

No files matched your search

+4 -1
View File
@@ -2964,7 +2964,10 @@ func TestLightningWallet(t *testing.T) {
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 height hint cache: %v", err)
}