From 6e01bb72b00207f4ecbeb08f555d0a131e7e0e4e Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 14 Nov 2016 15:06:12 -0800 Subject: [PATCH] lnwallet+peer: minor typo fixes --- lnwallet/channel_test.go | 2 +- peer.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lnwallet/channel_test.go b/lnwallet/channel_test.go index ea3356ce..a458c780 100644 --- a/lnwallet/channel_test.go +++ b/lnwallet/channel_test.go @@ -166,7 +166,7 @@ func forceStateTransition(chanA, chanB *LightningChannel) error { 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. func createTestChannels(revocationWindow int) (*LightningChannel, *LightningChannel, func(), error) { aliceKeyPriv, aliceKeyPub := btcec.PrivKeyFromBytes(btcec.S256(), diff --git a/peer.go b/peer.go index 44b7ceb4..81940047 100644 --- a/peer.go +++ b/peer.go @@ -421,6 +421,8 @@ out: // channel in which we were the responder. Therefore // we need to possibly block until the new channel has // propagated internally through the system. + // TODO(roasbeef): replace with atomic load from/into + // map? p.barrierMtx.RLock() barrier, ok := p.newChanBarriers[*targetChan] p.barrierMtx.RUnlock() @@ -688,7 +690,7 @@ out: // executeForceClose executes a unilateral close of the target channel by // broadcasting the current commitment state directly on-chain. Once the // 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. func (p *peer) executeForceClose(channel *lnwallet.LightningChannel) (*wire.ShaHash, error) { // Execute a unilateral close shutting down all further channel