estimatesmartfee call in testnet mode true is always returning -1, even though my blockcount is showing 1,231,644.
testnet=0 works fine.
estimatesmartfee 1
{
"feerate": -1,
"blocks": 25
}
1231664
Seems to be working all of a sudden! Closing ticket...
Note: estimatesmartfee is being removed next release. It's not particularly useful to bitcoin cash. I am currently working on better ways to handle fees.
Okay, I was going to say my website relies heavily on this feature, but Bitcoin cash transaction fees are so ridiculously inexpensive, what's the point I guess, lol. Now Bitcoin on the other hand....
Do you have a name for this new command line function at the moment, so I can keep a lookout when it gets released? Thanks for the great work!
Can you use estimatefee? The API is pretty similar. I was planning to swap out the logic to use the minrelayfee
Funny, estimatefee works like a charm, after I had the changed the value to a 2 instead of a 1 as shown below.
bcash-cli estimatefee 2 <- WORKS, returns 0.00001000
bcash-cli estimatefee 1 <- Returns a -1
bcash-cli
Funny guy. Glad you got your problem solved.
I had not realized I posted bcash-cli, as I simply copy and pasted the output from my Linux terminal. Renamed all the Bitcoin ABC binaries because it was absolutely required to specify a different name other than bitcoin-*, in order to prevent conflicts between running Bitcoin and Bitcoin Cash full node on the same server. Even after creating individual Linux subuser accounts to further separate and organize, they still wouldn't play nice with each other (_sibling rivalry at its worst)_ by sharing /usr/bin/, /usr/local/bin etc. So my choices where bitcoin-cash or bcash. I am not lazy as I can type incredibly fast, just prefer shorter names and names that will not confuse me. If there is another way to resolve the issue, I've not stumbled across it. Perhaps a virtual machine setup? But that would be a lot of effort and overkill. Funny, how I read an article today that stated how some take offense to referring to Bitcoin Cash as BCash and some love it because it breaks the ties with the original Bitcoin fork.
Anyways, I wrote that entire paragraph to hopefully create a few laughs, but most importantly on a serious note... I meant no offense by posting bcash-cli, if any offense was taken, my sincerest apologies.
Thanks for your contribution to the project!
Most helpful comment
Note: estimatesmartfee is being removed next release. It's not particularly useful to bitcoin cash. I am currently working on better ways to handle fees.