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 ##
###################
walletserver:
image: lbry/wallet-server:v0.51.2
image: lbry/wallet-server:v0.60.0
restart: always
environment:
- DB_DIRECTORY=/database
@ -47,7 +47,7 @@ services:
## Lbrynet ##
#############
lbrynet:
image: lbry/lbrynet:v0.51.2
image: lbry/lbrynet:v0.60.0
restart: always
ports:
- "15100:5279"

View file

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