server+contractcourt: add breachResolver that subscribes to breacharbiter
Introduces a breachResolver that subscribes to the breacharbiter to determine if the final justice transaction has confirmed and can clean itself up.
This commit is contained in:
1 parent
234fdc6c9c
commit
f99933fa69
4 files changed
+196
-16
No files matched your search
@@ -183,6 +183,12 @@ type ChainArbitratorConfig struct {
|
||||
// Clock is the clock implementation that ChannelArbitrator uses.
|
||||
// It is useful for testing.
|
||||
Clock clock.Clock
|
||||
|
||||
// SubscribeBreachComplete is used by the breachResolver to register a
|
||||
// subscription that notifies when the breach resolution process is
|
||||
// complete.
|
||||
SubscribeBreachComplete func(op *wire.OutPoint, c chan struct{}) (
|
||||
bool, error)
|
||||
}
|
||||
|
||||
// ChainArbitrator is a sub-system that oversees the on-chain resolution of all
|
||||
|
||||
Reference in new issue
Block a user