multi: fix linter errors

This commit is contained in:
Olaoluwa Osuntokun
2017-07-30 18:22:38 -07:00
parent 563fac84cc
commit 747e0f57d1
5 changed files with 12 additions and 9 deletions

View File

@@ -163,7 +163,10 @@ func createTestChannel(alicePrivKey, bobPrivKey []byte,
var obsfucator [lnwallet.StateHintSize]byte
copy(obsfucator[:], aliceFirstRevoke[:])
estimator := &lnwallet.StaticFeeEstimator{24, 6}
estimator := &lnwallet.StaticFeeEstimator{
FeeRate: 24,
Confirmation: 6,
}
feePerKw := btcutil.Amount(estimator.EstimateFeePerWeight(1) * 1000)
commitFee := (feePerKw * btcutil.Amount(724)) / 1000
@@ -227,7 +230,7 @@ func createTestChannel(alicePrivKey, bobPrivKey []byte,
// Now that the channel are open, simulate the start of a session by
// having Alice and Bob extend their revocation windows to each other.
aliceNextRevoke, err := channelAlice.NextRevocationkey()
aliceNextRevoke, err := channelAlice.NextRevocationKey()
if err != nil {
return nil, nil, nil, err
}
@@ -235,7 +238,7 @@ func createTestChannel(alicePrivKey, bobPrivKey []byte,
return nil, nil, nil, err
}
bobNextRevoke, err := channelBob.NextRevocationkey()
bobNextRevoke, err := channelBob.NextRevocationKey()
if err != nil {
return nil, nil, nil, err
}