8

Creating an app that utilizes estimatesmartfee, and it works in production, but I use regtest for automated testing and can't get it to return a value.

Looking at bitcoind tests it is splitting UTXOs in a loop etc.

What is the bare minimum I need to do as far as dummy transactions and mining blocks in order to get estimatesmartfee to work like it does on mainnet.

Thanks.

2
  • what is the error message that you get? Or are you getting a constant recommendation at 1 sat/B? I am guessing you need more than 1 vMB of pending transactions
    – Pedro
    Dec 17, 2019 at 15:34
  • Question related to my unanswered question: bitcoin.stackexchange.com/questions/84983/…
    – Pedro
    Dec 17, 2019 at 15:40

1 Answer 1

1

You need to fill up the mempool of your regtest nodes and mine blocks (this means creating transactions --eg by using sendtoaddress-- and generating blocks --with generatoaddress).

For reference here is how it's done to test estimatesmartfee.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.