Skip to content
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

[BUG] Infinite error logs #784

Open
minsulee2 opened this issue Dec 15, 2021 · 0 comments
Open

[BUG] Infinite error logs #784

minsulee2 opened this issue Dec 15, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@minsulee2
Copy link
Member

It occurs when

  1. Node 0, 1 and 2 are correctly making blocks.
  2. Node 3, which have larger than the nodes 0, 1, and 2, joins the blockchain network.
  3. The node 3 infinitely gets the below logs after connection made.
2021-12-15T07:34:13.628Z [node-8085] info: [P2P_CLIENT] [handleChainSegment] Failed to merge incoming chain segment.
2021-12-15T07:34:13.628Z [node-8085] info: [CONSENSUS] [catchUp] Current lastNotarizedBlock: 6 / 22552285
2021-12-15T07:34:13.628Z [node-8085] info: [CONSENSUS] [checkProposal] Checking proposal block and tx: 101 / 22578111 / 0xf5667ec248e8a19aa3a011f21f3d0877d94b3caa4bdeabf4bb8c6fb5198f8332 / 0x02A2A1DF4f630d760c82BE07F18e5065d103Fa00
0x90d57189fa9340ddc2faede9b83f98ae5108da7f4c53bf53a5811940e0c06305 / 0x02A2A1DF4f630d760c82BE07F18e5065d103Fa00
2021-12-15T07:34:13.630Z [node-8085] error: [CONSENSUS] No notarized block at number 100 with hash 0x7f3fd2fff419f2b2e14de5a98a586dbcdd2a0f43d9bc052ba8b1d7f46f7eb6bd
2021-12-15T07:34:13.630Z [node-8085] info: [CONSENSUS] [tryVoteForValidBlock] Trying to vote for 101 / 22578111 / 0xf5667ec248e8a19aa3a011f21f3d0877d94b3caa4bdeabf4bb8c6fb5198f8332
2021-12-15T07:34:13.630Z [node-8085] info: [CONSENSUS] [checkVoteTx] Cannot verify the vote without the block it's voting for: 0xf5667ec248e8a19aa3a011f21f3d0877d94b3caa4bdeabf4bb8c6fb5198f8332 / undefined
2021-12-15T07:34:13.631Z [node-8085] info: [CONSENSUS] [checkVoteTx] Cannot verify the vote without the block it's voting for: 0xf5667ec248e8a19aa3a011f21f3d0877d94b3caa4bdeabf4bb8c6fb5198f8332 / undefined
2021-12-15T07:34:13.632Z [node-8085] info: [CONSENSUS] [checkVoteTx] Cannot verify the vote without the block it's voting for: 0xf5667ec248e8a19aa3a011f21f3d0877d94b3caa4bdeabf4bb8c6fb5198f8332 / undefined
2021-12-15T07:34:13.645Z [node-8085] info: [NODE] [mergeChainSegment] Failed to add new block (8 / 0x156136053e6ea5edcbb658e7be0a8efd8f60c1c598fe99983dca9d0d4a42a1a7) to chain: ConsensusException: Transaction signer and proposer are different: {"tx_body":{"operation":{"type":"SET","op_list":[{"type":"SET_VALUE","ref":"/consensus/number/8/propose","value":{"number":8,"epoch":22578018,"validators":{"0x00ADEc28B6a845a085e03591bE7550dd68673C1C":{"stake":10000000,"proposal_right":true},"0x01A0980d2D4e418c7F27e1ef539d01A5b5E93204":{"stake":10000000,"proposal_right":true},"0x02A2A1DF4f630d760c82BE07F18e5065d103Fa00":{"stake":10000000,"proposal_right":true}},"total_at_stake":30000000,"proposer":"0x00ADEc28B6a845a085e03591bE7550dd68673C1C","block_hash":"0x236d43a49f78e5ab3368ae00397f96dd450fa78f212ca7afddba0e3f13d224c6","last_hash":"0x9376468ef0dc5bcf1e6ac7e4168fcbb94366302beb756088bad0bf458c2fba0d","timestamp":1639553372646,"gas_cost_total":0}}]},"nonce":-1,"gas_price":1,"timestamp":1639553372662},"signature":"0x10d745f9a2f77980ce00a1942020937b1ebb3ff073a0e0f2d8032da140a3d37ce053b70cdd287b320efa908db49803caa34ce1ecf2c179dbe45227afee5ee379747512750bd8668a04c656bb2b596b7d3cdd8ee82e4b102ec8bc148bc0a38b911c","hash":"0x10d745f9a2f77980ce00a1942020937b1ebb3ff073a0e0f2d8032da140a3d37c","address":"0x00ADEc28B6a845a085e03591bE7550dd68673C1C"} !== 0x01A0980d2D4e418c7F27e1ef539d01A5b5E93204
    at Function.validateProposalTx (/Users/minsulee/comcom/ain-blockchain2/consensus/index.js:437:15)
    at Function.validateAndExecuteBlockOnDb (/Users/minsulee/comcom/ain-blockchain2/consensus/index.js:772:15)
    at BlockchainNode.mergeChainSegment (/Users/minsulee/comcom/ain-blockchain2/node/index.js:618:19)
    at P2pClient.handleChainSegment (/Users/minsulee/comcom/ain-blockchain2/p2p/index.js:565:42)
    at WebSocket.<anonymous> (/Users/minsulee/comcom/ain-blockchain2/p2p/index.js:503:16)
    at WebSocket.emit (events.js:314:20)
    at Receiver.receiverOnMessage (/Users/minsulee/comcom/ain-blockchain2/node_modules/ws/lib/websocket.js:834:20)
    at Receiver.emit (events.js:314:20)
    at Receiver.dataMessage (/Users/minsulee/comcom/ain-blockchain2/node_modules/ws/lib/receiver.js:437:14)
    at /Users/minsulee/comcom/ain-blockchain2/node_modules/ws/lib/receiver.js:394:23
2021-12-15T07:34:13.645Z [node-8085] info: [P2P_CLIENT] [handleChainSegment] Failed to merge incoming chain segment.
2021-12-15T07:34:13.645Z [node-8085] info: [CONSENSUS] [catchUp] Current lastNotarizedBlock: 6 / 22552285
2021-12-15T07:34:13.645Z [node-8085] info: [CONSENSUS] [checkProposal] Checking proposal block and tx: 101 / 22578111 / 0xf5667ec248e8a19aa3a011f21f3d0877d94b3caa4bdeabf4bb8c6fb5198f8332 / 0x02A2A1DF4f630d760c82BE07F18e5065d103Fa00
0x90d57189fa9340ddc2faede9b83f98ae5108da7f4c53bf53a5811940e0c06305 / 0x02A2A1DF4f630d760c82BE07F18e5065d103Fa00
2021-12-15T07:34:13.646Z [node-8085] error: [CONSENSUS] No notarized block at number 100 with hash 0x7f3fd2fff419f2b2e14de5a98a586dbcdd2a0f43d9bc052ba8b1d7f46f7eb6bd
2021-12-15T07:34:13.646Z [node-8085] info: [CONSENSUS] [tryVoteForValidBlock] Trying to vote for 101 / 22578111 / 0xf5667ec248e8a19aa3a011f21f3d0877d94b3caa4bdeabf4bb8c6fb5198f8332
2021-12-15T07:34:13.647Z [node-8085] info: [CONSENSUS] [checkVoteTx] Cannot verify the vote without the block it's voting for: 0xf5667ec248e8a19aa3a011f21f3d0877d94b3caa4bdeabf4bb8c6fb5198f8332 / undefined
2021-12-15T07:34:13.648Z [node-8085] info: [CONSENSUS] [checkVoteTx] Cannot verify the vote without the block it's voting for: 0xf5667ec248e8a19aa3a011f21f3d0877d94b3caa4bdeabf4bb8c6fb5198f8332 / undefined
2021-12-15T07:34:13.648Z [node-8085] info: [CONSENSUS] [checkVoteTx] Cannot verify the vote without the block it's voting for: 0xf5667ec248e8a19aa3a011f21f3d0877d94b3caa4bdeabf4bb8c6fb5198f8332 / undefined
@minsulee2 minsulee2 added the bug Something isn't working label Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants