Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Module ID not accepted while generating a block #7305

Closed
Tracked by #7210
ishantiw opened this issue Jul 15, 2022 · 0 comments · Fixed by #7306
Closed
Tracked by #7210

Module ID not accepted while generating a block #7305

ishantiw opened this issue Jul 15, 2022 · 0 comments · Fixed by #7306

Comments

@ishantiw
Copy link
Contributor

Expected behavior

A node with a valid generator should be able to forge a block without any error.

Actual behavior

Currently when we run a node it fails below when executing a block in the chain.

16:30:35 ERROR lisk-framework: Fail to execute block. (module=engine)
Message: Block asset with moduleID: 15 is not accepted.
 Trace: Error: Block asset with moduleID: 15 is not accepted.
    at Chain.validateBlock (/lisk-sdk/elements/lisk-chain/dist-node/chain.js:104:23)
    at /lisk-sdk/framework/dist-node/engine/consensus/consensus.js:322:25
    at Mutex.runExclusive (/lisk-sdk/elements/lisk-utils/dist-node/job_handlers/mutex.js:23:26)
    at async Consensus._execute (/lisk-sdk/framework/dist-node/engine/consensus/consensus.js:258:9)
    at async Consensus.execute (/lisk-sdk/framework/dist-node/engine/consensus/consensus.js:187:13)
    at async Generator._generateLoop (/lisk-sdk/framework/dist-node/engine/generator/generator.js:278:9)
    at async Timeout._onTimeout (/lisk-sdk/elements/lisk-utils/dist-node/job_handlers/scheduler.js:26:17)
16:30:36 INFO lisk-framework: Generated new block (module=engine)
{
 "id": "92b6f1a546e89e90f598c89aede424124ab801b8a191ae50635a758cdafeff1a",
 "height": 1,
 "generatorAddress": "38562249e1969099833677a98e0c1a5ebaa2a191"
}

Steps to reproduce

Run examples/dpos-mainchain with forging enabled

Which version(s) does this affect? (Environment, OS, etc...)

v6.0.0-alpha.-

@ishantiw ishantiw added this to the Sprint 73 milestone Jul 15, 2022
@ishantiw ishantiw moved this to Backlog in Lisk SDK Version 6.0.0 Jul 15, 2022
@milenagojkovic milenagojkovic modified the milestones: Sprint 73, Sprint 74 Jul 18, 2022
Repository owner moved this from Backlog to Done in Lisk SDK Version 6.0.0 Jul 18, 2022
ishantiw added a commit that referenced this issue Jul 18, 2022
Use equals to check moduleID is present in accepted module Ids - Closes #7305
@milenagojkovic milenagojkovic modified the milestones: Sprint 74, Sprint 73 Jul 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants