Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increasing in the number of blocks to include a transaction in the blockchain after 0.20.2 on regtest node #920

Open
swanwarp opened this issue Apr 5, 2021 · 3 comments

Comments

@swanwarp
Copy link

swanwarp commented Apr 5, 2021

I ran 0.20.2 node in regtest mode. After 5000 blocks was generated I start 18 tests each with such scenario:

  1. Generate two addresses A and B
  2. Send money to address A using 'sendtoaddress', wait until transaction was included in chain
  3. Send money from address A to address B using 'sendrawtransaction' and (for building transaction) 'estimatesmartfee 10'
  4. Wait 10 blocks
  5. Check that last transaction was included

Main issue is that from test to test number of blocks needed for including transaction is increasing and at last tests transaction is not included in next 10 blocks after sending. I use 'estimatesmartfee 10', it returns higher value from test to test, but from some point raising fee according to smart estimation does not lead to transaction will be included in 10 blocks. This issue was occurred after updating node to 0.20.2, on 0.20.1 all tests have been passed.

Node configuration:
{ "addrindex": "1", "dnsseed": "0", "fallbackfee": "0.0002", "logevents": "1", "port": "12000", "regtest": "1", "reindex": "1", "rpcallowip": "0.0.0.0/0", "rpcbind": "****", "rpcpassword": "****", "rpcport": "12001", "rpcuser": "****", "server": "1", "txindex": "1", "upnp": "0", "wallet": "" }

@JB395
Copy link
Contributor

JB395 commented Apr 6, 2021

estimatesmartfee needs a number of transactions in recent blocks to produce a good estimate. Otherwise you should see an error "Insufficient data or no feerate found". It will not produce useful results on regtest or even testnet.

@swanwarp
Copy link
Author

swanwarp commented Apr 7, 2021

@JB395 I tried to send 20+ transactions in the beginning of each test if estimatesmartfee returns error you mentioned, but it did not help anyway. Also as I said all tests were right with 0.20.1 regtest node. I really cant see what was changed that can lead to such changes in behavior.

@JB395
Copy link
Contributor

JB395 commented Apr 10, 2021

I think the algo wants to see transactions across multiple blocks. Try 3 transactions for 10 consecutive blocks, then estimatesmartfee 10 on the 11th block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants