sweep: allow specified outputs to sweep tx

We'll use this to attach an output for the value reserved for anchor
commitments fee bumping if the user requests a send_all transaction.
This commit is contained in:
Johan T. Halseth
2021-01-14 11:49:27 +01:00
parent eaf97418be
commit 185ba77f8e
7 changed files with 80 additions and 33 deletions

View File

@@ -39,7 +39,7 @@ func TestWeightEstimate(t *testing.T) {
))
}
_, estimator := getWeightEstimate(inputs, 0)
_, estimator := getWeightEstimate(inputs, nil, 0)
weight := int64(estimator.weight())
if weight != expectedWeight {
t.Fatalf("unexpected weight. expected %d but got %d.",