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
Unexplained 1 million block height in mempool code #15080
Comments
Looks like it was introduced by @TheBlueMatt in #5267. |
A block far far away? |
It's not for testnet.
…On Mon, Jan 28, 2019, 7:35 PM João Barbosa ***@***.*** wrote:
A block far far away?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#15080 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFgC04pUw8iuSBR1Ae1XhOlVJ5P6azI-ks5vH1EOgaJpZM4Zm8HF>
.
|
I'm having a really difficult time convincing myself this behavior could not lead to incorrect results. But this can only be hit when I think here the I'll think a little more how a false assertion or validation failure could hit if unchanged. |
I think that the height currently specified as a magic number is never accessed: In While all ancestors need to be added to mempoolDuplicate, the height at which they are added is not checked in I did some testing with a height of 0 instead of 1E6 and didn't see any effect. |
Lines up with my current thinking. |
fadbc5d mempool: remove unused magic number from consistency check (Gregory Sanders) Pull request description: Unexplained magic numbers are no good. Since the exact number does not matter, opt for a constant that is less peculiar. Note that this could only possibly affect mempool consistency checks which is not active by default except on regtest. see discussion: #15080 ACKs for commit fadbc5: practicalswift: utACK fadbc5d Tree-SHA512: 80f95ebc284c5bcc5d825fab0e9f962457a411539946d68ef4c8bdea4b1f2f7f0ead88928fac0eaaa02a1175f01f5ef381613ce53b0f27c3098e90d76ecfe9af
…ency check fadbc5d mempool: remove unused magic number from consistency check (Gregory Sanders) Pull request description: Unexplained magic numbers are no good. Since the exact number does not matter, opt for a constant that is less peculiar. Note that this could only possibly affect mempool consistency checks which is not active by default except on regtest. see discussion: bitcoin#15080 ACKs for commit fadbc5: practicalswift: utACK fadbc5d Tree-SHA512: 80f95ebc284c5bcc5d825fab0e9f962457a411539946d68ef4c8bdea4b1f2f7f0ead88928fac0eaaa02a1175f01f5ef381613ce53b0f27c3098e90d76ecfe9af
…ency check fadbc5d mempool: remove unused magic number from consistency check (Gregory Sanders) Pull request description: Unexplained magic numbers are no good. Since the exact number does not matter, opt for a constant that is less peculiar. Note that this could only possibly affect mempool consistency checks which is not active by default except on regtest. see discussion: bitcoin#15080 ACKs for commit fadbc5: practicalswift: utACK fadbc5d Tree-SHA512: 80f95ebc284c5bcc5d825fab0e9f962457a411539946d68ef4c8bdea4b1f2f7f0ead88928fac0eaaa02a1175f01f5ef381613ce53b0f27c3098e90d76ecfe9af
…ency check fadbc5d mempool: remove unused magic number from consistency check (Gregory Sanders) Pull request description: Unexplained magic numbers are no good. Since the exact number does not matter, opt for a constant that is less peculiar. Note that this could only possibly affect mempool consistency checks which is not active by default except on regtest. see discussion: bitcoin#15080 ACKs for commit fadbc5: practicalswift: utACK fadbc5d Tree-SHA512: 80f95ebc284c5bcc5d825fab0e9f962457a411539946d68ef4c8bdea4b1f2f7f0ead88928fac0eaaa02a1175f01f5ef381613ce53b0f27c3098e90d76ecfe9af
…ency check fadbc5d mempool: remove unused magic number from consistency check (Gregory Sanders) Pull request description: Unexplained magic numbers are no good. Since the exact number does not matter, opt for a constant that is less peculiar. Note that this could only possibly affect mempool consistency checks which is not active by default except on regtest. see discussion: bitcoin#15080 ACKs for commit fadbc5: practicalswift: utACK fadbc5d Tree-SHA512: 80f95ebc284c5bcc5d825fab0e9f962457a411539946d68ef4c8bdea4b1f2f7f0ead88928fac0eaaa02a1175f01f5ef381613ce53b0f27c3098e90d76ecfe9af
…ency check fadbc5d mempool: remove unused magic number from consistency check (Gregory Sanders) Pull request description: Unexplained magic numbers are no good. Since the exact number does not matter, opt for a constant that is less peculiar. Note that this could only possibly affect mempool consistency checks which is not active by default except on regtest. see discussion: bitcoin#15080 ACKs for commit fadbc5: practicalswift: utACK fadbc5d Tree-SHA512: 80f95ebc284c5bcc5d825fab0e9f962457a411539946d68ef4c8bdea4b1f2f7f0ead88928fac0eaaa02a1175f01f5ef381613ce53b0f27c3098e90d76ecfe9af
…ency check fadbc5d mempool: remove unused magic number from consistency check (Gregory Sanders) Pull request description: Unexplained magic numbers are no good. Since the exact number does not matter, opt for a constant that is less peculiar. Note that this could only possibly affect mempool consistency checks which is not active by default except on regtest. see discussion: bitcoin#15080 ACKs for commit fadbc5: practicalswift: utACK fadbc5d Tree-SHA512: 80f95ebc284c5bcc5d825fab0e9f962457a411539946d68ef4c8bdea4b1f2f7f0ead88928fac0eaaa02a1175f01f5ef381613ce53b0f27c3098e90d76ecfe9af
…ency check fadbc5d mempool: remove unused magic number from consistency check (Gregory Sanders) Pull request description: Unexplained magic numbers are no good. Since the exact number does not matter, opt for a constant that is less peculiar. Note that this could only possibly affect mempool consistency checks which is not active by default except on regtest. see discussion: bitcoin#15080 ACKs for commit fadbc5: practicalswift: utACK fadbc5d Tree-SHA512: 80f95ebc284c5bcc5d825fab0e9f962457a411539946d68ef4c8bdea4b1f2f7f0ead88928fac0eaaa02a1175f01f5ef381613ce53b0f27c3098e90d76ecfe9af
Where is this magic number from?
bitcoin/src/txmempool.cpp
Line 603 in fb52d06
The text was updated successfully, but these errors were encountered: