lnd.xprv/discovery
Olaoluwa Osuntokun 9d4cea93f0
discovery: fix deadlock in processChanPolicyUpdate
In this commit, we fix an existing deadlock in the
processChanPolicyUpdate method. Before this commit, within
processChanPolicyUpdate, we would directly call updateChannel *within*
the ForEachChannel closure. This would at times result in a deadlock, as
updateChannel will itself attempt to create a write transaction in order
to persist the newly updated channel.

We fix this deadlock by simply performing another loop once we know the
set of channels that we wish to update. This second loop will actually
update the channels on disk.
2018-04-06 14:51:57 -07:00
..
ann_validation.go discovery: update graph API usage to match recent API changes 2018-02-06 20:14:32 -08:00
bootstrapper.go discovery: ensure target host for DNS fallback is fully qualified 2018-03-18 16:05:10 -07:00
gossiper_test.go multi test: make mock adhere to api change 2018-04-03 22:04:02 +02:00
gossiper.go discovery: fix deadlock in processChanPolicyUpdate 2018-04-06 14:51:57 -07:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
utils.go discovery: update graph API usage to match recent API changes 2018-02-06 20:14:32 -08:00