mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-26 21:51:27 +02:00
multi: optimize loggings around changes from blockbeat
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user