sweep: signal tx in markInputFatal

This commit adds the failed tx to the result when marking the input as
fatal, which is used in the commit resolver when handling revoked
outputs.
This commit is contained in:
yyforyongyu committed 2025-02-20 14:40:54 +08:00
1 parent b184afe227
commit 4bd1a344b9
2 files changed
+11 -6

No files matched your search

+1 -1
View File
@@ -596,7 +596,7 @@ func TestMarkInputFailed(t *testing.T) {
}
// Call the method under test.
s.markInputFatal(pi, errors.New("dummy error"))
s.markInputFatal(pi, nil, errors.New("dummy error"))
// Assert the state is updated.
require.Equal(t, Fatal, pi.state)