contractcourt+lnrpc+lnd: s/BreachArbiter/BreachArbitrator

Since we have two other examples of XArbitrator, we rename
BreachArbiter to BreachArbitrator to keep things consistent.
The aim is to reduce the amount of lore you need to know to
intuit where things are or what they do.
This commit is contained in:
Keagan McClelland committed 2024-02-06 13:32:47 -07:00
1 parent 47fced69da
commit bc3feba267
9 files changed
+102 -91

No files matched your search

+5 -4
View File
@@ -8,13 +8,14 @@ import (
)
// breachResolver is a resolver that will handle breached closes. In the
// future, this will likely take over the duties the current breacharbiter has.
// future, this will likely take over the duties the current BreachArbitrator
// has.
type breachResolver struct {
// resolved reflects if the contract has been fully resolved or not.
resolved bool
// subscribed denotes whether or not the breach resolver has subscribed
// to the breacharbiter for breach resolution.
// to the BreachArbitrator for breach resolution.
subscribed bool
// replyChan is closed when the breach arbiter has completed serving
@@ -42,8 +43,8 @@ func (b *breachResolver) ResolverKey() []byte {
return key[:]
}
// Resolve queries the breacharbiter to see if the justice transaction has been
// broadcast.
// Resolve queries the BreachArbitrator to see if the justice transaction has
// been broadcast.
func (b *breachResolver) Resolve() (ContractResolver, error) {
if !b.subscribed {
complete, err := b.SubscribeBreachComplete(