lnwallet: use new ChainNotifier API, typo fixes

This commit is contained in:
Olaoluwa Osuntokun committed 2017-05-11 15:21:05 -07:00
1 parent 5fe3a5631d
commit 1b4862d815
3 files changed
+7 -6

No files matched your search

+2 -1
View File
@@ -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
}
+2 -2
View File
@@ -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
}