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

Calamari Using nimbus: cannot read properties of undefined (reading 'notFirstBlock') #216

Closed
zqhxuyuan opened this issue Mar 2, 2023 · 6 comments · Fixed by #220
Closed

Comments

@zqhxuyuan
Copy link
Contributor

zqhxuyuan commented Mar 2, 2023

yarn start:

TypeError: Cannot read properties of undefined (reading 'notFirstBlock')
    at newHeader (/Users/zqh/code/substrates/chopsticks/packages/chopsticks/src/blockchain/block-builder.ts:84:68)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async dryRunExtrinsic (/Users/zqh/code/substrates/chopsticks/packages/chopsticks/src/blockchain/block-builder.ts:218:18)
    at async Blockchain.dryRunExtrinsic (/Users/zqh/code/substrates/chopsticks/packages/chopsticks/src/blockchain/index.ts:184:37)
    at async dryRun (/Users/zqh/code/substrates/chopsticks/packages/chopsticks/src/dry-run.ts:14:36)
    at async Object.handler (/Users/zqh/code/substrates/chopsticks/packages/chopsticks/src/cli.ts:122:9)

run in dev mode, can open 8000 successful first, but after make a transfer transaction, error in terminal, and can't open 8000.

[17:20:17.129] TRACE (ws/97187): Subscription notification
    method: "author_extrinsicUpdate"
    subid: "8a8s3glt0yb"
    data: {
      "Ready": null
    }
[17:20:17.234] TRACE (executor/97187): taskRun
    wasm: "0x52bc537646db8e0528b52ffd00583c1a…271798f19320eca23b8a114d30c70901"
    calls: [
      [
        "AuraApi_slot_duration",
        []
      ]
    ]
    storage: []
    mockSignatureHost: false
    allowUnresolvedImports: false
[17:20:17.373] TRACE (executor/97187): taskResponse
    result: "0xe02e000000000000"
    storageDiff: []
[17:20:17.389] TRACE (layer/97187): RemoteStorageLayer get
    at: "0x79e168f619190c89659a0575bffd9749d4fa654df797afb0d2cdff2064c9eb17"
    key: "0x45323df7cc47150b3930e2666b0aa31390d171f8401887cf06fb43a732994c32"
TypeError: Cannot read properties of undefined (reading 'notFirstBlock')
    at newHeader (/Users/zqh/code/substrates/chopsticks/packages/chopsticks/src/blockchain/block-builder.ts:84:68)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at buildBlock (/Users/zqh/code/substrates/chopsticks/packages/chopsticks/src/blockchain/block-builder.ts:137:18)
    at TxPool.#buildBlock (/Users/zqh/code/substrates/chopsticks/packages/chopsticks/src/blockchain/txpool.ts:107:43)
    at TxPool.buildBlock (/Users/zqh/code/substrates/chopsticks/packages/chopsticks/src/blockchain/txpool.ts:87:5)
[ERROR] 17:20:17 TypeError: Cannot read properties of undefined (reading 'notFirstBlock')
@ermalkaleci
Copy link
Collaborator

can be fixed using hard-coded key

@ermalkaleci
Copy link
Collaborator

calamari not exposing randomness storage

@zqhxuyuan
Copy link
Contributor Author

we don't have randomness pallet yet, is this PR cause the error: https://github.com/AcalaNetwork/chopsticks/pull/95/files#diff-41d4c269892acedcac86c6f536dc1154074629de2dfeba6491b0268a9d0e2dfd. What do you mean hard-coded key, what should I add to config file?

@ermalkaleci
Copy link
Collaborator

we don't have randomness pallet yet, is this PR cause the error: https://github.com/AcalaNetwork/chopsticks/pull/95/files#diff-41d4c269892acedcac86c6f536dc1154074629de2dfeba6491b0268a9d0e2dfd. What do you mean hard-coded key, what should I add to config file?

no, we need to update chopsticks

@ermalkaleci ermalkaleci linked a pull request Mar 2, 2023 that will close this issue
@ermalkaleci
Copy link
Collaborator

randomness reset now checks if it exists. I think now you need to provide some storage override to make nimbus works like https://github.com/AcalaNetwork/chopsticks/blob/master/configs/moonriver.yml

@ermalkaleci
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants