Bitcoin Forum
May 27, 2024, 10:31:24 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to handle dynamic fees with bitcoind server?  (Read 542 times)
CoinBand (OP)
Member
**
Offline Offline

Activity: 80
Merit: 10


View Profile
June 16, 2016, 06:50:41 AM
 #1

Hello,

2 days ago all my new transactions got stuck not being confirmed by network - i assume that it is because paytxfee=0.0001 which made fees like 1s=1b (right?)

My software use simple "sendfrom" so i think the best solution for me is to set something like this (pseudocode)

$val = bitcoin-cli estimatefee 6
if($val > 0 && $val < 0.01) {
  bitcoin-cli settxfee $val
} else {
  error("Fee out of control")
}

and run this piece of code like every hour from crontab at server? Would it be enough? Is this rock solid solution for fighting unconfirmed transactions?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3402
Merit: 6659


Just writing some code


View Profile WWW
June 16, 2016, 12:44:58 PM
 #2

Yes, that looks like it should work and help get your transactions confirmed.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!