lnwallet: ListUnspent takes int32 not uint32, use math.MaxInt32 instead
This commit is contained in:
1 parent
a56d2199a3
commit
06e5544428
1 file changed
+1
-1
+1
-1
@@ -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