input: ensure sessionOpts is properly threaded through
This commit is contained in:
6 files changed
+74
-69
No files matched your search
@@ -4,6 +4,7 @@ package lnwallet
|
||||
|
||||
import (
|
||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||
"github.com/lightningnetwork/lnd/channeldb"
|
||||
"github.com/lightningnetwork/lnd/keychain"
|
||||
"github.com/lightningnetwork/lnd/shachain"
|
||||
)
|
||||
@@ -46,7 +47,9 @@ func (l *LightningWallet) nextRevocationProducer(res *ChannelReservation,
|
||||
}
|
||||
shaChainRoot := shachain.NewRevocationProducer(*revRoot)
|
||||
|
||||
taprootShaChainRoot, err := deriveMusig2Shachain(*revRoot)
|
||||
taprootShaChainRoot, err := channeldb.DeriveMusig2Shachain(
|
||||
shaChainRoot,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
@@ -81,7 +84,9 @@ func (l *LightningWallet) nextRevocationProducer(res *ChannelReservation,
|
||||
// Once we have the root, we can then generate our shachain producer
|
||||
// and from that generate the per-commitment point.
|
||||
shaChainRoot := shachain.NewRevocationProducer(revRoot)
|
||||
taprootShaChainRoot, err := deriveMusig2Shachain(revRoot)
|
||||
taprootShaChainRoot, err := channeldb.DeriveMusig2Shachain(
|
||||
shaChainRoot,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user