lnd.xprv/contractcourt
Olaoluwa Osuntokun fa160f559c
multi: replace per channel sigPool with global daemon level sigPool
In this commit, we remove the per channel `sigPool` within the
`lnwallet.LightningChannel` struct. With this change, we ensure that as
the number of channels grows, the number of gouroutines idling in the
sigPool stays constant. It's the case that currently on the daemon, most
channels are likely inactive, with only a hand full actually
consistently carrying out channel updates. As a result, this change
should reduce the amount of idle CPU usage, as we have less active
goroutines in select loops.

In order to make this change, the `SigPool` itself has been publicly
exported such that outside callers can make a `SigPool` and pass it into
newly created channels. Since the sig pool now lives outside the
channel, we were also able to do away with the Stop() method on the
channel all together.

Finally, the server is the sub-system that is currently responsible for
managing the `SigPool` within lnd.
2018-12-16 15:40:14 -08:00
..
briefcase_test.go multi: switch from bolt packge to bbolt package for all imports 2018-11-29 20:33:49 -08:00
briefcase.go multi: switch from bolt packge to bbolt package for all imports 2018-11-29 20:33:49 -08:00
chain_arbitrator_test.go contractcourt: add new ChainArbitrator struct as central coordinator of package 2018-01-22 19:19:36 -08:00
chain_arbitrator.go multi: replace per channel sigPool with global daemon level sigPool 2018-12-16 15:40:14 -08:00
chain_watcher_test.go cnct: add channel_arbitor test that exercises the htlcOutgoingContestResolver 2018-09-20 18:17:23 -07:00
chain_watcher.go chain_watcher: poll for commit point in case of failure 2018-11-21 10:28:57 +01:00
channel_arbitrator_test.go contractcourt: update tests to use new IncubateOutputs API 2018-09-25 21:49:10 -07:00
channel_arbitrator.go Merge pull request #1856 from maurycy/typos 2018-09-27 20:38:10 -07:00
contract_resolvers_test.go contractcourt: add complete ContractResolver implementations 2018-01-22 19:19:36 -08:00
contract_resolvers.go cnct: add comment on expiry calculation 2018-11-07 15:29:57 +01:00
log.go multi: init subsystem loggers via build pkg 2018-10-05 13:04:45 +09:00