multi: fix linter errors

This commit is contained in:
Olaoluwa Osuntokun 2017-11-10 19:36:35 -08:00
parent 1fb05e0436
commit 6f51b941df
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
3 changed files with 10 additions and 7 deletions

@ -553,7 +553,7 @@ func TestChannelStateTransition(t *testing.T) {
commitDiff.Commitment.RemoteBalance += htlcAmt
commitDiff.LogUpdates = []LogUpdate{}
if err := channel.AppendRemoteCommitChain(commitDiff); err != nil {
t.Fatal("unable to add to commit chain: %v", err)
t.Fatalf("unable to add to commit chain: %v", err)
}
if err := channel.AdvanceCommitChainTail(); err != nil {
t.Fatalf("unable to append to revocation log: %v", err)

@ -442,14 +442,17 @@ func (d *DB) MarkChanFullyClosed(chanPoint *wire.OutPoint) error {
chanID := b.Bytes()
closedChanBucket, err := tx.CreateBucketIfNotExists(closedChannelBucket)
closedChanBucket, err := tx.CreateBucketIfNotExists(
closedChannelBucket,
)
if err != nil {
return err
}
chanSummaryBytes := closedChanBucket.Get(chanID)
if chanSummaryBytes == nil {
return fmt.Errorf("no closed channel by that chanID found")
return fmt.Errorf("no closed channel by that chanID " +
"found")
}
chanSummaryReader := bytes.NewReader(chanSummaryBytes)
@ -472,9 +475,9 @@ func (d *DB) MarkChanFullyClosed(chanPoint *wire.OutPoint) error {
})
}
// syncVersions function is used for safe db version synchronization. It applies
// migration functions to the current database and recovers the previous
// state of db if at least one error/panic appeared during migration.
// syncVersions function is used for safe db version synchronization. It
// applies migration functions to the current database and recovers the
// previous state of db if at least one error/panic appeared during migration.
func (d *DB) syncVersions(versions []version) error {
meta, err := d.FetchMeta(nil)
if err != nil {

@ -40,7 +40,7 @@ const (
MsgCommitSig = 132
MsgRevokeAndAck = 133
MsgUpdateFailMalformedHTLC = 135
MsgChannelReestablish = 136
MsgChannelReestablish = 136
MsgUpdateFee = 137
MsgChannelAnnouncement = 256
MsgNodeAnnouncement = 257