multi: fix linter errors

This commit is contained in:
Olaoluwa Osuntokun committed 2017-07-30 18:22:45 -07:00
1 parent 563fac84cc
commit 747e0f57d1
5 files changed
+12 -9

No files matched your search

+2 -2
View File
@@ -2495,7 +2495,7 @@ func genHtlcSigValidationJobs(localCommitmentView *commitment,
// HLTC output. Given the sighash, and the signing key, we'll be able
// to validate each signature within the worker pool.
i := 0
for index, _ := range localCommitmentView.txn.TxOut {
for index := range localCommitmentView.txn.TxOut {
var sigHash func() ([]byte, error)
outputIndex := int32(index)
@@ -2953,7 +2953,7 @@ func (lc *LightningChannel) ReceiveRevocation(revMsg *lnwire.RevokeAndAck) ([]*P
// height. The pubkey returned by this function is required by the remote party
// along with their revocation base to to extend our commitment chain with a
// new commitment.
func (lc *LightningChannel) NextRevocationkey() (*btcec.PublicKey, error) {
func (lc *LightningChannel) NextRevocationKey() (*btcec.PublicKey, error) {
lc.RLock()
defer lc.RUnlock()
+2 -2
View File
@@ -142,7 +142,7 @@ func (m *mockNotfier) RegisterSpendNtfn(outpoint *wire.OutPoint, heightHint uint
//
// TODO(roasbeef): rename!
func initRevocationWindows(chanA, chanB *LightningChannel, windowSize int) error {
aliceNextRevoke, err := chanA.NextRevocationkey()
aliceNextRevoke, err := chanA.NextRevocationKey()
if err != nil {
return err
}
@@ -150,7 +150,7 @@ func initRevocationWindows(chanA, chanB *LightningChannel, windowSize int) error
return err
}
bobNextRevoke, err := chanB.NextRevocationkey()
bobNextRevoke, err := chanB.NextRevocationKey()
if err != nil {
return err
}
+1 -1
View File
@@ -1019,7 +1019,7 @@ func TweakPubKeyWithTweak(pubKey *btcec.PublicKey, tweakBytes []byte) *btcec.Pub
}
}
// TweakPrivKek tweaks the private key of a public base point given a per
// TweakPrivKey tweaks the private key of a public base point given a per
// commitment point. The per commitment secret is the revealed revocation
// secret for the commitment state in question. This private key will only need
// to be generated in the case that a channel counter party broadcasts a