Author

Topic: How to handle dynamic fees with bitcoind server? (Read 542 times)

staff
Activity: 3374
Merit: 6530
Just writing some code
Yes, that looks like it should work and help get your transactions confirmed.
member
Activity: 80
Merit: 10
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?
Jump to: