mod+kvdb+channeldb: use btcwallet new DB interface

Depends on btcsuite/btcwallet#757.
Pulls in the updated version of btcwallet and walletdb that have the DB
interface enhanced by their own View() and Update() methods with the
reset callback/closure supported out of the box. That way the global
package-level View() and Update() functions now become pure redirects.
This commit is contained in:
Oliver Gugger committed 2021-08-04 14:55:55 +02:00
1 parent 1e84b52fee
commit 482f76a0f4
13 files changed
+34 -114

No files matched your search

+1 -1
View File
@@ -214,7 +214,7 @@ func (d DB) FetchChannelReports(chainHash chainhash.Hash,
var reports []*ResolverReport
if err := kvdb.View(d, func(tx kvdb.RTx) error {
if err := kvdb.View(d.Backend, func(tx kvdb.RTx) error {
chanBucket, err := fetchReportReadBucket(
tx, chainHash, outPoint,
)