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:
2 files changed
+11
-6
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user