upgrade SDK

fix UTXO creation time waste
This commit is contained in:
Niko Storni 2020-02-24 15:52:32 +01:00
parent 29479a73a7
commit 5460224cd6
2 changed files with 5 additions and 2 deletions

View file

@ -21,7 +21,7 @@ services:
## Wallet Server ## ## Wallet Server ##
################### ###################
walletserver: walletserver:
image: lbry/wallet-server:v0.51.2 image: lbry/wallet-server:v0.60.0
restart: always restart: always
environment: environment:
- DB_DIRECTORY=/database - DB_DIRECTORY=/database
@ -47,7 +47,7 @@ services:
## Lbrynet ## ## Lbrynet ##
############# #############
lbrynet: lbrynet:
image: lbry/lbrynet:v0.51.2 image: lbry/lbrynet:v0.60.0
restart: always restart: always
ports: ports:
- "15100:5279" - "15100:5279"

View file

@ -222,6 +222,9 @@ func (s *Sync) ensureEnoughUTXOs() error {
if desiredUTXOCount > maxUTXOs { if desiredUTXOCount > maxUTXOs {
desiredUTXOCount = maxUTXOs desiredUTXOCount = maxUTXOs
} }
if desiredUTXOCount < uint64(confirmedCount) {
return nil
}
availableBalance, _ := balance.Available.Float64() availableBalance, _ := balance.Available.Float64()
log.Infof("Splitting balance of %.3f evenly between %d UTXOs", availableBalance, desiredUTXOCount) log.Infof("Splitting balance of %.3f evenly between %d UTXOs", availableBalance, desiredUTXOCount)