sweep: ensure we factor in extra change addrs in MaxFeeRateAllowed

This commit is contained in:
Olaoluwa Osuntokun
2024-09-27 17:07:53 +09:00
parent f2adabb989
commit bdaa9f4146
4 changed files with 48 additions and 10 deletions

View File

@@ -262,7 +262,8 @@ func getWeightEstimate(inputs []input.Input, outputs []*wire.TxOut,
default:
// Unknown script type.
return nil, nil, errors.New("unknown script type")
return nil, nil, fmt.Errorf("unknown script "+
"type: %x", outputPkScript)
}
}