mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 13:52:55 +02:00
lnwallet: ListUnspent takes int32 not uint32, use math.MaxInt32 instead
This commit is contained in:
@@ -317,7 +317,7 @@ func (l *LightningWallet) handleFundingReserveRequest(req *initFundingReserveMsg
|
||||
defer partialState.Unlock()
|
||||
|
||||
// Find all unlocked unspent outputs with greater than 6 confirmations.
|
||||
maxConfs := ^int32(0)
|
||||
maxConfs := int32(math.MaxInt32)
|
||||
unspentOutputs, err := l.wallet.ListUnspent(6, maxConfs, nil)
|
||||
if err != nil {
|
||||
req.err <- err
|
||||
|
Reference in New Issue
Block a user