Skip to content

Commit

Permalink
lnwallet: removed unused sync.RWMutex in PaymentDescriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Apr 12, 2017
1 parent 178f26b commit 17d6835
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lnwallet/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ const (
// TODO(roasbeef): LogEntry interface??
// * need to separate attrs for cancel/add/settle
type PaymentDescriptor struct {
sync.RWMutex

// RHash is the payment hash for this HTLC. The HTLC can be settled iff
// the preimage to this hash is presented.
RHash PaymentHash
Expand Down Expand Up @@ -1725,7 +1723,7 @@ func (lc *LightningChannel) ReceiveNewCommitment(rawSig []byte) error {
return nil
}

// FullSynced returns a boolean value reflecting if both commitment chains
// FullySynced returns a boolean value reflecting if both commitment chains
// (remote+local) are fully in sync. Both commitment chains are fully in sync
// if the tip of each chain includes the latest committed changes from both
// sides.
Expand Down

0 comments on commit 17d6835

Please sign in to comment.