lnwallet: ListUnspent takes int32 not uint32, use math.MaxInt32 instead
This commit is contained in:
parent
a56d2199a3
commit
06e5544428
@ -317,7 +317,7 @@ func (l *LightningWallet) handleFundingReserveRequest(req *initFundingReserveMsg
|
|||||||
defer partialState.Unlock()
|
defer partialState.Unlock()
|
||||||
|
|
||||||
// Find all unlocked unspent outputs with greater than 6 confirmations.
|
// 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)
|
unspentOutputs, err := l.wallet.ListUnspent(6, maxConfs, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
req.err <- err
|
req.err <- err
|
||||||
|
Loading…
Reference in New Issue
Block a user