From a89f5f08d1a24a0902ed400da7d5fce9bcea109d Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Sat, 5 May 2018 12:18:44 -0400 Subject: [PATCH] increase the margin for fees decrease number of addresses to use (we fall back to waiting for a block) --- setup.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.go b/setup.go index 276a980..99938b2 100644 --- a/setup.go +++ b/setup.go @@ -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 {