sweep: change markInputsPublishFailed to take outpoints

This way it's easier to pass values to this method in various callsites.
This commit is contained in:
yyforyongyu committed 2024-04-19 21:33:27 +08:00
1 parent db7eae97ff
commit 6202c59cb3
2 files changed
+16 -11

No files matched your search

+4 -2
View File
@@ -2108,8 +2108,10 @@ func TestMarkInputsPublishFailed(t *testing.T) {
// Mark the test inputs. We expect the non-exist input and the
// inputInit to be skipped, and the final input to be marked as
// published.
s.markInputsPublishFailed([]*wire.TxIn{
inputNotExist, inputInit, inputPendingPublish,
s.markInputsPublishFailed([]wire.OutPoint{
inputNotExist.PreviousOutPoint,
inputInit.PreviousOutPoint,
inputPendingPublish.PreviousOutPoint,
})
// We expect unchanged number of pending inputs.