sweep/txgenerator: log in case of no change output

This commit is contained in:
Johan T. Halseth 2020-12-09 12:24:01 +01:00
parent 1e68cdc8cf
commit 6150995b46
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -222,6 +222,9 @@ func createSweepTx(inputs []input.Input, outputPkScript []byte,
PkScript: outputPkScript,
Value: int64(changeAmt),
})
} else {
log.Infof("Change amt %v below dustlimit %v, not adding "+
"change output", changeAmt, dustLimit)
}
// We'll default to using the current block height as locktime, if none