lnd/contractcourt
Conner Fromknecht 30f61b7630
multi: make AddPreimage variadic, optimistically compute key
In this commit, we modify the WitnessCache's
AddPreimage method to accept a variadic number
of preimages. This enables callers to batch
preimage writes in performance critical areas
of the codebase, e.g. the htlcswitch.

Additionally, we lift the computation of the
witnesses' keys outside of the db transaction.
This saves us from having to do hashing inside
and blocking other callers, and limits extraneous
blocking at the call site.
2019-02-19 17:05:04 -08:00
..
briefcase_test.go cnct: use sweeper in commit resolver 2019-02-01 09:20:45 +01:00
briefcase.go multi: move Input interface and related code 2019-01-31 13:25:33 +01: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 contractcourt/chain_arbitrator: notify the ChannelNotifier on newly closed channels. 2019-02-05 18:17:54 -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 multi: move Input interface and related code 2019-01-31 13:25:33 +01:00
channel_arbitrator_test.go Merge pull request #2356 from joostjager/invoices-subserver 2019-02-01 17:19:58 -08:00
channel_arbitrator.go multi: make AddPreimage variadic, optimistically compute key 2019-02-19 17:05:04 -08:00
commit_sweep_resolver.go cnct: use sweeper in commit resolver 2019-02-01 09:20:45 +01:00
contract_resolvers_test.go contractcourt: add complete ContractResolver implementations 2018-01-22 19:19:36 -08:00
contract_resolvers.go cnct: expose non-incubating htlcs after channel force close 2019-02-01 09:36:47 +01:00
htlc_incoming_contest_resolver.go cnct: expose non-incubating htlcs after channel force close 2019-02-01 09:36:47 +01:00
htlc_outgoing_contest_resolver.go multi: make AddPreimage variadic, optimistically compute key 2019-02-19 17:05:04 -08:00
htlc_success_resolver.go multi: move Input interface and related code 2019-01-31 13:25:33 +01:00
htlc_timeout_resolver.go cnct: make original htlc amt available for contract resolvers 2019-01-22 20:47:17 -08:00
log.go multi: init subsystem loggers via build pkg 2018-10-05 13:04:45 +09:00