increase the margin for fees

decrease number of addresses to use (we fall back to waiting for a block)
This commit is contained in:
Niko Storni 2018-05-05 12:18:44 -04:00
parent 4f8bc81664
commit a89f5f08d1

View file

@ -46,7 +46,7 @@ func (s *Sync) walletSetup() error {
minBalance := (float64(numOnSource)-float64(numPublished))*publishAmount + channelClaimAmount
amountToAdd, _ := decimal.NewFromFloat(minBalance).Sub(balance).Float64()
amountToAdd *= 1.5 // add 50% margin for fees, future publishes, etc
amountToAdd *= 2 // add 100% margin for fees, future publishes, etc
if s.Refill > 0 {
if amountToAdd < 0 {
@ -98,7 +98,7 @@ func (s *Sync) ensureEnoughUTXOs() error {
}
}
target := 60
target := 40
count := 0
for _, utxo := range *utxolist {