Merge pull request #9650 from Roasbeef/early-offer-chan-flushing-flake

lnwallet/chancloser: fix flake in TestRbfChannelFlushingTransitions/early_offer
This commit is contained in:
Oliver Gugger authored and GitHub committed 2025-03-27 08:18:07 -06:00
commit a53c6dda64
2 files changed
+3 -7

No files matched your search

+2 -2
View File
@@ -1353,8 +1353,8 @@ func TestRbfChannelFlushingTransitions(t *testing.T) {
// offer and send our sig).
closeHarness.chanCloser.SendEvent(ctx, &flushEvent)
closeHarness.assertSingleRemoteRbfIteration(
remoteOffer, absoluteFee, absoluteFee, sequence, false,
true,
remoteOffer, absoluteFee, absoluteFee, sequence, true,
false,
)
})
+1 -5
View File
@@ -237,8 +237,7 @@ func (s *StateMachine[Event, Env]) Stop() {
//
// TODO(roasbeef): bool if processed?
func (s *StateMachine[Event, Env]) SendEvent(ctx context.Context, event Event) {
s.log.DebugS(ctx, "Sending event",
"event", lnutils.SpewLogClosure(event))
s.log.Debugf("Sending event %T", event)
select {
case s.events <- event:
@@ -544,9 +543,6 @@ func (s *StateMachine[Event, Env]) applyEvents(ctx context.Context,
currentState State[Event, Env], newEvent Event) (State[Event, Env],
error) {
s.log.DebugS(ctx, "Applying new event",
"event", lnutils.SpewLogClosure(newEvent))
eventQueue := fn.NewQueue(newEvent)
// Given the next event to handle, we'll process the event, then add