From 17d6835861d3dc9f19919a13b38ee68d507eff61 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 11 Apr 2017 22:08:19 -0700 Subject: [PATCH] lnwallet: removed unused sync.RWMutex in PaymentDescriptor --- lnwallet/channel.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 69a3039e..ab7f31dc 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -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 @@ -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.