Remove the score in the foundry#236
Remove the score in the foundry#236mergify[bot] merged 3 commits intoCodeChain-io:masterfrom somniumism:remove
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. : ))) |
|
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