mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 23:21:12 +02:00
multi: add SpewLogClosure
to avoid code repetition
This commit is contained in:
@@ -948,10 +948,7 @@ func (u *UtxoNursery) waitForSweepConf(classHeight uint32,
|
||||
func (u *UtxoNursery) sweepCribOutput(classHeight uint32, baby *babyOutput) error {
|
||||
utxnLog.Infof("Publishing CLTV-delayed HTLC output using timeout tx "+
|
||||
"(txid=%v): %v", baby.timeoutTx.TxHash(),
|
||||
lnutils.NewLogClosure(func() string {
|
||||
return spew.Sdump(baby.timeoutTx)
|
||||
}),
|
||||
)
|
||||
lnutils.SpewLogClosure(baby.timeoutTx))
|
||||
|
||||
// We'll now broadcast the HTLC transaction, then wait for it to be
|
||||
// confirmed before transitioning it to kindergarten.
|
||||
|
Reference in New Issue
Block a user