dogecoin: [bug] estimatefee & estimatesmartfee always return -1 as result
Hi!
Want to report that whenever I call DOGE node, the result is always -1 on both estimatefee and estimatesmartfee RPC methods.
Is there any issue related to this?
example call:
curl --location 'https://rpc.coinsdo.net/doge' \
--header 'Content-Type: application/json' \
--data '{"jsonrpc": "1.0", "id": "1", "method": "estimatefee", "params": [6]}'
response:
{
"result": -1,
"error": null,
"id": "1"
}
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Reactions: 2
- Comments: 18 (11 by maintainers)
I’m going to propose a series of pull requests to address this issue over the coming week, starting tonight:
estimatefee
andestimatesmartfee
functional, also in periods of spam - #3389This basically changes the automatic fee estimation feature from being unmaintained and a depreciation candidate, to an actively supported feature, and that is a policy change for Dogecoin Core (with 1.14.0, smartfees was said to no longer be supported.) Because there is plenty of time needed for testers to get results, consider this an open invitation for anyone to opine in on the desirability of supporting this feature.
Please comment your thoughts.
I’m working on a patch, and have done minimal orientation to manage an expedited release for it.
There are two major problems with the fee estimation logic:
Over the past few hours I’ve seen the below estimates on a tuned, reconfigured model, but in reality your transaction will get mined with 0.001 DOGE/kb within 5 blocks with 70% certainty. So this already improved model is still overestimating fee 541 times because of the fee race happening, even though the size of a default configured mempool is < 2 blocks worth of transactions at the moment.
Thank you for this
estimatefee
debugging forestimatesmartfee 6
says:Yes, but note that for now, the scope of my proposal is to bring back the API method into active support, because that’s what this issue is about. If that is successful, we can consider re-hanging it into the wallet as an optional or, if we’re confident that it won’t make everyone overpay, even the default mechanism to determine fee.
@patricklodder thanks for sharing it. I guess we have to wait for proper fix and estimate fee on our own.
Hej @mangekyousharingan 😃 nie chcesz zrobić review tłumaczenia? https://github.com/dogecoin/dogecoin/pull/3431
Thank you for sharing this. I also installed modified /src/policy/fees.h from #3389 as a patch to test on my full node and
estimatesmartfee
was returning fee every time for various block parameter values, even when transaction count in mempool was around 50-60K.Nice! Yes, by the looks of it this will be needed. Glad you’re working on it. Thanks! 🙏
That’s because there isn’t much to estimate at the moment. If there is a peak of traffic, it will go kaput again unless we fix it.
estimatefee
back to be working as it was 😉 I guess it got fixed by itself? 🤔 Thank you @patricklodder for all the input! 🙏I’ve been able to reproduce this right now (although until yesterday it was working fine) so current blocks are triggering a condition to invalidate the result - I’m not sure which one yet.