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
2024-01-17 00:20:24 +08:00
parent db7eae97ff
commit 6202c59cb3
2 changed files with 16 additions and 11 deletions

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.