mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-03 17:26:57 +01:00
lnwallet+peer: minor typo fixes
This commit is contained in:
parent
df74d8981d
commit
6e01bb72b0
2 changed files with 4 additions and 2 deletions
|
@ -166,7 +166,7 @@ func forceStateTransition(chanA, chanB *LightningChannel) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// createTestChannels creates two test channels funded witr 10 BTC, with 5 BTC
|
// createTestChannels creates two test channels funded with 10 BTC, with 5 BTC
|
||||||
// allocated to each side.
|
// allocated to each side.
|
||||||
func createTestChannels(revocationWindow int) (*LightningChannel, *LightningChannel, func(), error) {
|
func createTestChannels(revocationWindow int) (*LightningChannel, *LightningChannel, func(), error) {
|
||||||
aliceKeyPriv, aliceKeyPub := btcec.PrivKeyFromBytes(btcec.S256(),
|
aliceKeyPriv, aliceKeyPub := btcec.PrivKeyFromBytes(btcec.S256(),
|
||||||
|
|
4
peer.go
4
peer.go
|
@ -421,6 +421,8 @@ out:
|
||||||
// channel in which we were the responder. Therefore
|
// channel in which we were the responder. Therefore
|
||||||
// we need to possibly block until the new channel has
|
// we need to possibly block until the new channel has
|
||||||
// propagated internally through the system.
|
// propagated internally through the system.
|
||||||
|
// TODO(roasbeef): replace with atomic load from/into
|
||||||
|
// map?
|
||||||
p.barrierMtx.RLock()
|
p.barrierMtx.RLock()
|
||||||
barrier, ok := p.newChanBarriers[*targetChan]
|
barrier, ok := p.newChanBarriers[*targetChan]
|
||||||
p.barrierMtx.RUnlock()
|
p.barrierMtx.RUnlock()
|
||||||
|
@ -688,7 +690,7 @@ out:
|
||||||
// executeForceClose executes a unilateral close of the target channel by
|
// executeForceClose executes a unilateral close of the target channel by
|
||||||
// broadcasting the current commitment state directly on-chain. Once the
|
// broadcasting the current commitment state directly on-chain. Once the
|
||||||
// commitment transaction has been broadcast, a struct describing the final
|
// commitment transaction has been broadcast, a struct describing the final
|
||||||
// state of the channel is sent to the utxoNursery in order to ultimatley sweep
|
// state of the channel is sent to the utxoNursery in order to ultimately sweep
|
||||||
// the immature outputs.
|
// the immature outputs.
|
||||||
func (p *peer) executeForceClose(channel *lnwallet.LightningChannel) (*wire.ShaHash, error) {
|
func (p *peer) executeForceClose(channel *lnwallet.LightningChannel) (*wire.ShaHash, error) {
|
||||||
// Execute a unilateral close shutting down all further channel
|
// Execute a unilateral close shutting down all further channel
|
||||||
|
|
Loading…
Add table
Reference in a new issue