protofsm: add ability for state machine to consume wire msgs

In this commit, we add the ability for the state machine to consume wire
messages. This'll allow the creation of a new generic message router
that takes the place of the current peer `readHandler` in an upcoming
commit.
This commit is contained in:
Olaoluwa Osuntokun committed 2024-11-18 20:48:59 -08:00
1 parent bf10e31167
commit 424ae09631
4 files changed
+166 -17

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ import (
"github.com/lightningnetwork/lnd/lnwire"
)
// DaemonEvent is a special event that can be emmitted by a state transition
// DaemonEvent is a special event that can be emitted by a state transition
// function. A state machine can use this to perform side effects, such as
// sending a message to a peer, or broadcasting a transaction.
type DaemonEvent interface {