-
Notifications
You must be signed in to change notification settings - Fork 12
Remove the score in the foundry #236
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
Conversation
|
There are currently many test failures caused by time out as follows: |
|
I added @junha1 as a reviewer. He knows more about the foundry test and its structure than I do, so he can find a problem I can't find. Please check it carefully. : ))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my experience, those failures are not just timeouts. You must fix them all, and make sure they all passed in local first.
|
I found the cause of test failure. I separated the commit that causes it: Error: Remove the score from IStatus The error is related to the change in this code. I definitely removed @majecty Could you check what I did wrong and give me some advice? |
|
There are 3 commits in this PR. I checked that the e2e test works successfully on Remove the score in the test. |
|
It seems to be related to exchanging any data in the p2p layer. I checked what the msg contains using if (msgId === MessageType.MESSAGE_ID_STATUS) {
Emitter.emit("status");
const msg = decodedmsg[1];
console.log(msg[0]); //
console.log(msg[1]); //
console.log(msg[2]); //
const totalScore = new U256(
parseInt(msg[0].toString("hex"), 16) || 0
);
const bestHash = new H256(msg[1].toString("hex"));The results are as follows: case 2) The commit: [Error] Remove the score from IStatus I certainly did remove the total score in the second but in both cases the same result. |
|
@somniumism Need rebase |
|
@junha1 I rebased it onto master. |
|
This commit is very sensitive to e2e tests, so please merge it after it passes CI. |
|
@somniumism Could you check the error? |
In the past, the work of removing the totalScore from the BodySyncMessage and introducing the seq, the test was not modified at that time. Therefore, we removed the remaining totalScore and changed it to the seq.
The tests were not updated when we changed the BlockSynMessage.
We removed the unnecessary score from the foundry and its tests.
resolves #208