multi: replace DefaultDustLimit with script-specific DustLimitForSize
This commit updates call-sites to use the proper dust limits for various script types. This also updates the default dust limit used in the funding flow to be 354 satoshis instead of 573 satoshis.
This commit is contained in:
27 files changed
+330
-154
No files matched your search
@@ -304,7 +304,7 @@ func (w *WalletAssembler) ProvisionChannel(r *Request) (Intent, error) {
|
||||
|
||||
// Sanity check: The addition of the outputs should not lead to the
|
||||
// creation of dust.
|
||||
if changeAmt != 0 && changeAmt <= w.cfg.DustLimit {
|
||||
if changeAmt != 0 && changeAmt < w.cfg.DustLimit {
|
||||
return fmt.Errorf("change amount(%v) after coin "+
|
||||
"select is below dust limit(%v)", changeAmt,
|
||||
w.cfg.DustLimit)
|
||||
|
||||
Reference in new issue
Block a user