-
Notifications
You must be signed in to change notification settings - Fork 781
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
Uncle Validation Test #1998
Comments
Do you remember where you took this test from? I slightly remember adding this test but you are right, it does not make much sense to test it. However I do think there was some situation where we needed this weird logic, and I think it was one of the |
It was originally in |
This seems directly related to something I encountered in the There is a test in
Then it starts assembling blocks, using this to change the hardfork: However, in I can fix this test by turning |
i will try out the #1995 PR locally tomorrow to see whats going on. most likely the mockchain might not be getting build because of some validation failing (is my guess) so the miner is trying to build block from 0 |
@acolytec3 can you have another look and assessment on this issue? |
No follow-up and likely reduced relevance, will close. |
In #1959 when migrating the
blockchain
dependent validation methods and tests fromblock
toblockchain
, I came across this test. It clearly depends on having a blockchain available to check validity of uncles and parent headers around fork blocks but some of the changes we made in terms of block validation (where a block validation method will throw in the constructor if a block has invalid parameters of whatever kind) required a fairly significant rework of the original test and I'm not 100% sure I got everything right (or if we even need to keep this test). The piece that most confused me was the last part of the test:It wasn't clear to me why we needed to generate an initial london block with a an uncle that was berlin based but where we ignore the actual hardfork the child block is on and then validate that
common
doesn't change.The text was updated successfully, but these errors were encountered: