lnd/chainntnfs/btcdnotify
positiveblue c602ac07e7
chainntnfs: move cache implementation to channeldb
This commit moves the `HeightHintCache` implementation to the
`channeldb` package and inverts the dependency relation between
`chainntnfs` and `channeldb`.

Many packages depend on channeldb for type definitions,
interfaces, etc. `chainntnfs` is an example of that. `chainntnfs`
defines the  `SpendHintCache` and `ConfirmHintCache` interfaces but
it also implments them (`HeightHintCache` struct). The implementation
uses logic that should not leak from channeldb (ex: bucket paths).
This makes our code highly coupled + it would not allow us to use any
of these interfaces in a package that is imported by `channeldb`
(circular dependency).
2023-01-16 03:13:17 -08:00
..
btcd_dev.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
btcd_test.go chainntnfs: move cache implementation to channeldb 2023-01-16 03:13:17 -08:00
btcd.go multi: don't access loop variables in goroutines 2022-11-21 13:54:23 +01:00
driver.go chainntnfs: add block cache to BtcdNotifier 2021-04-28 09:46:11 +02:00