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
the size of block-template ups and downs when call getblocktemplate
at the same block height
#156
Comments
Oh,
len: 21827912 -> 8205268 -> 21827336, the block height not changed. |
So it is not a multithreading issue, which is somehow reinsuring. Thanks for reporting this. |
getblocktemplate
from a node with -rpcthreads=4
getblocktemplate
at the same block height
I'm unable to reproduce this issue with Bitcoin-ABC v0.16.2 The size of @YihaoPeng - Can you reproduce the issue with 0.16.2? |
I have no 0.16.2 nodes at current and the unconfirmed transactions in memory pool receded. I will upgrade to 0.16.2 and test it at next time that the memory pool larger than 100MB. |
I think I now what the problem is. You must have reached the sigops limit. sigops is not taken into account when prioritizing transactions building a template. |
@deadalnix Yeah, you are right(sigops works), I can test 32M block in testnet. Following params will be modified:
|
@qshuai Thank you for the update. I'm going to close the issue as resolved. Please reopen if there is other follow up needed. |
Describe the issue
I run
bitcoin-abc v0.16.1
with-rpcthreads=4
(default setting) and-maxblocksize=7994000
.You know there is a lot of unconfirmed transactions in the memory pool recently, so I expect that when I call
getblocktemplate
, the size of each block-template should be close to 7.9MB.But I'm wrong. The size of block-template is fluctuant. It sometimes near 1MB, sometimes near 2MB and sometimes near 7.9MB. A size suddenly appeared, keep some seconds, then suddenly switched to another size.
(
The issue looks like disappeared if I run bitcoin-abc node with)-rpcthreads=1
.There are some logs about this situation:
The block size nearly equals
rawgbt-message-len * 0.37
. So the first block template of height513011
is near 7.9MB (21505568 * 0.37
). The next 3 block templates have the similar size. But suddenly, it downs to 879KB (2402544 * 0.37). The block height not changed.Log continues. The len suddenly ups to
21582256
and21562640
at16:39:06
, then downs to2688528
immediately.Len: 5330016 -> 21634404 -> 5453676, with the same block height.
Can you reliably reproduce the issue?
If so, please list the steps to reproduce below:
getblocktemplate
every ten seconds and record the size of the returned data.Expected behaviour
The size of block-template is increasing from a small number to near 7.9MB, then keep 7.9MB until a new block found.
Actual behaviour
The size of block-template is fluctuant. It sometimes near 1MB, sometimes near 2MB and sometimes near 7.9MB. A size suddenly appeared, keep some seconds, then suddenly switched to another size.
What version of bitcoin-abc are you using?
Bitcoin-ABC v0.16.1, https://github.com/Bitcoin-ABC/bitcoin-abc/archive/v0.16.1.tar.gz
Running it as a docker container: https://github.com/btccom/bccpool/tree/master/docker/bitcoin-abc/v0.16.1
Machine specs:
Any extra information that might be useful in the debugging process.
The issue looks like disappeared if I run bitcoin-abc with-rpcthreads=1
.The text was updated successfully, but these errors were encountered: