upgrade SDK
fix UTXO creation time waste
This commit is contained in:
parent
29479a73a7
commit
5460224cd6
2 changed files with 5 additions and 2 deletions
|
@ -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"
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue