9d4cea93f0
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. |
||
---|---|---|
.. | ||
ann_validation.go | ||
bootstrapper.go | ||
gossiper_test.go | ||
gossiper.go | ||
log.go | ||
utils.go |