Merge pull request #6929 from morehouse/mutex_fix
funding: fix potential data race
This commit is contained in:
2 files changed
+6
No files matched your search
@@ -55,6 +55,9 @@ minimum version needed to build the project.
|
|||||||
* [Update Tor module](https://github.com/lightningnetwork/lnd/pull/6526) to
|
* [Update Tor module](https://github.com/lightningnetwork/lnd/pull/6526) to
|
||||||
allow the option to encrypt the private key on disk.
|
allow the option to encrypt the private key on disk.
|
||||||
|
|
||||||
|
* [Fixed potential data race on funding manager
|
||||||
|
restart](https://github.com/lightningnetwork/lnd/pull/6929).
|
||||||
|
|
||||||
## `lncli`
|
## `lncli`
|
||||||
* [Add an `insecure` flag to skip tls auth as well as a `metadata` string slice
|
* [Add an `insecure` flag to skip tls auth as well as a `metadata` string slice
|
||||||
flag](https://github.com/lightningnetwork/lnd/pull/6818) that allows the
|
flag](https://github.com/lightningnetwork/lnd/pull/6818) that allows the
|
||||||
@@ -97,6 +100,7 @@ minimum version needed to build the project.
|
|||||||
* ErikEk
|
* ErikEk
|
||||||
* hieblmi
|
* hieblmi
|
||||||
* Jesse de Wit
|
* Jesse de Wit
|
||||||
|
* Matt Morehouse
|
||||||
* Olaoluwa Osuntokun
|
* Olaoluwa Osuntokun
|
||||||
* Oliver Gugger
|
* Oliver Gugger
|
||||||
* Priyansh Rastogi
|
* Priyansh Rastogi
|
||||||
@@ -634,7 +634,9 @@ func (f *Manager) start() error {
|
|||||||
f.newChanBarriers[chanID] = make(chan struct{})
|
f.newChanBarriers[chanID] = make(chan struct{})
|
||||||
f.barrierMtx.Unlock()
|
f.barrierMtx.Unlock()
|
||||||
|
|
||||||
|
f.localDiscoveryMtx.Lock()
|
||||||
f.localDiscoverySignals[chanID] = make(chan struct{})
|
f.localDiscoverySignals[chanID] = make(chan struct{})
|
||||||
|
f.localDiscoveryMtx.Unlock()
|
||||||
|
|
||||||
// Rebroadcast the funding transaction for any pending
|
// Rebroadcast the funding transaction for any pending
|
||||||
// channel that we initiated. No error will be returned
|
// channel that we initiated. No error will be returned
|
||||||
|
|||||||
Reference in new issue
Block a user