lnwallet/chancloser: create unique ServiceKey for the RBF chan closer
What changed, and why it matters
This commit adds a single type alias (a nickname for an existing type) in the Lightning Network Daemon's channel closer code. It does not change any behavior, fix any bug, or alter how messages are processed. It is a small code-cleanup/refactoring step to prepare for future architectural changes.
No security action needed. Review as normal refactoring if auditing the RBF cooperative close code path.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds ChanCloserActorMsg as a type alias for protofsm.ActorMessage[ProtocolEvent] in lnwallet/chancloser/rbf_coop_states.go. The commit message frames this as enabling the RBF channel-closer state machine executor to be passed around as an actor and as groundwork for eventually rewriting msgmux.Router with new actor abstractions. No functional code, state-machine logic, routing, validation, or cryptographic handling is modified.
Changed components
lnwallet/chancloser/rbf_coop_states.goInspect captured patch +4 / −0
diff --git a/lnwallet/chancloser/rbf_coop_states.go b/lnwallet/chancloser/rbf_coop_states.go
index 61f7718..9319c1d 100644
--- a/lnwallet/chancloser/rbf_coop_states.go
+++ b/lnwallet/chancloser/rbf_coop_states.go
@@ -1026,3 +1026,7 @@ type RbfEvent = protofsm.EmittedEvent[ProtocolEvent]
// RbfStateSub is a type alias for the state subscription type of the RBF chan
// closer.
type RbfStateSub = protofsm.StateSubscriber[ProtocolEvent, *Environment]
+
+// ChanCloserActorMsg is an adapter to enable the state machine executor that
+// runs this state machine to be passed around as an actor.
+type ChanCloserActorMsg = protofsm.ActorMessage[ProtocolEvent]
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.