lnwallet: use new ChainNotifier API, typo fixes
This commit is contained in:
3 files changed
+7
-6
No files matched your search
+2
-1
@@ -775,7 +775,8 @@ func NewLightningChannel(signer Signer, events chainntnfs.ChainNotifier,
|
||||
// the remote party has broadcasted a commitment transaction
|
||||
// on-chain.
|
||||
fundingOut := &lc.fundingTxIn.PreviousOutPoint
|
||||
channelCloseNtfn, err := lc.channelEvents.RegisterSpendNtfn(fundingOut)
|
||||
openHeight := lc.channelState.OpeningHeight
|
||||
channelCloseNtfn, err := lc.channelEvents.RegisterSpendNtfn(fundingOut, openHeight)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -69,8 +69,8 @@ func genMultiSigScript(aPub, bPub []byte) ([]byte, error) {
|
||||
|
||||
// Swap to sort pubkeys if needed. Keys are sorted in lexicographical
|
||||
// order. The signatures within the scriptSig must also adhere to the
|
||||
// order, ensuring that the signatures for each public key appears
|
||||
// in the proper order on the stack.
|
||||
// order, ensuring that the signatures for each public key appears in
|
||||
// the proper order on the stack.
|
||||
if bytes.Compare(aPub, bPub) == -1 {
|
||||
aPub, bPub = bPub, aPub
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user