mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 14:40:30 +01:00
channeldb: update UpdateCommitment description
This method is only used to update the local commitment transaction. Updated comment accordingly.
This commit is contained in:
parent
6a866890a8
commit
ea892fce17
1 changed files with 5 additions and 5 deletions
|
@ -1239,11 +1239,11 @@ func syncNewChannel(tx *bbolt.Tx, c *OpenChannel, addrs []net.Addr) error {
|
||||||
return putLinkNode(nodeInfoBucket, linkNode)
|
return putLinkNode(nodeInfoBucket, linkNode)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateCommitment updates the commitment state for the specified party
|
// UpdateCommitment updates the local commitment state. It locks in the pending
|
||||||
// (remote or local). The commitment stat completely describes the balance
|
// local updates that were received by us from the remote party. The commitment
|
||||||
// state at this point in the commitment chain. This method its to be called on
|
// state completely describes the balance state at this point in the commitment
|
||||||
// two occasions: when we revoke our prior commitment state, and when the
|
// chain. This method its to be called when we revoke our prior commitment
|
||||||
// remote party revokes their prior commitment state.
|
// state.
|
||||||
func (c *OpenChannel) UpdateCommitment(newCommitment *ChannelCommitment) error {
|
func (c *OpenChannel) UpdateCommitment(newCommitment *ChannelCommitment) error {
|
||||||
c.Lock()
|
c.Lock()
|
||||||
defer c.Unlock()
|
defer c.Unlock()
|
||||||
|
|
Loading…
Add table
Reference in a new issue