multi: optimize loggings around changes from blockbeat

This commit is contained in:
yyforyongyu
2024-10-18 05:35:00 +08:00
parent fecd5ac735
commit 4806b2fda7
9 changed files with 62 additions and 38 deletions

View File

@@ -1588,7 +1588,10 @@ func prepareSweepTx(inputs []input.Input, changePkScript lnwallet.AddrWithKey,
// Check if the lock time has reached
if lt > uint32(currentHeight) {
return 0, noChange, noLocktime, ErrLocktimeImmature
return 0, noChange, noLocktime,
fmt.Errorf("%w: current height is %v, "+
"locktime is %v", ErrLocktimeImmature,
currentHeight, lt)
}
// If another input commits to a different locktime, they