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