Merge pull request #4412 from aantonop/height_hint_cache_query_disable

New config option - disable height hint cache queries
This commit is contained in:
Conner Fromknecht authored and GitHub committed 2020-07-14 18:58:15 -07:00
commit b907035438
8 files changed
+54 -13

No files matched your search

+4 -1
View File
@@ -3014,7 +3014,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)
}