lnwallet: add whoseCommit to FetchLeavesFromCommit
This is useful for additional context to know which commit the AuxLeafStore is fetching the leaves for.
This commit is contained in:
5 files changed
+13
-8
No files matched your search
+3
-2
@@ -19,6 +19,7 @@ import (
|
||||
"github.com/lightningnetwork/lnd/chainntnfs"
|
||||
"github.com/lightningnetwork/lnd/channeldb"
|
||||
"github.com/lightningnetwork/lnd/fn"
|
||||
"github.com/lightningnetwork/lnd/lntypes"
|
||||
"github.com/lightningnetwork/lnd/lnwallet/chainfee"
|
||||
"github.com/lightningnetwork/lnd/tlv"
|
||||
"github.com/stretchr/testify/mock"
|
||||
@@ -420,8 +421,8 @@ func (*MockAuxLeafStore) FetchLeavesFromView(
|
||||
// correspond to the passed aux blob, and an existing channel
|
||||
// commitment.
|
||||
func (*MockAuxLeafStore) FetchLeavesFromCommit(_ AuxChanState,
|
||||
_ channeldb.ChannelCommitment,
|
||||
_ CommitmentKeyRing) fn.Result[CommitDiffAuxResult] {
|
||||
_ channeldb.ChannelCommitment, _ CommitmentKeyRing,
|
||||
_ lntypes.ChannelParty) fn.Result[CommitDiffAuxResult] {
|
||||
|
||||
return fn.Ok(CommitDiffAuxResult{})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user