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

Invalid transaction when session.newSession is emitted #1631

Open
luispdm opened this issue Nov 27, 2024 · 2 comments
Open

Invalid transaction when session.newSession is emitted #1631

luispdm opened this issue Nov 27, 2024 · 2 comments

Comments

@luispdm
Copy link

luispdm commented Nov 27, 2024

Hi, Laos developer here. There's something I want to share here that you might be unaware of.

We've been investigating an issue in our parachain that causes transactions to be invalid occasionally. This happens when session.newSession is emitted.

The issue comes from this line of pallet-session: https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/session/src/lib.rs#L563. It's been reported in the polkadot-sdk repo paritytech/polkadot-sdk#184 but it remains unresolved as of today.

We successfully reproduced the issue in your runtime using Chopsticks with the following modified configuration:

endpoint: wss://darwinia-rpc.dwellir.com
mock-signature-host: true
db: ./darwinia.db.sqlite
runtime-log-level: 5
port: 9999
block: 4759199

import-storage:
  System:
    Account:
      - - - "0xf24FF3a9CF04c71Dbc94D0b566f7A27B94566cac"
        - providers: 1
          data:
            free: '1000000000000000000000'

Block 4759199 is the one immediately preceding the emission of session.newSession. For reference, this is the screenshot of the invalid transaction:
darwinia-tx-invalid

And this is the screenshot of the newly produced block:
darwinia-no-remark-in-block
As you can see, system.remark is not emitted.

This is the issue on our side, in case you want to keep track of it.

Thank you for your time.

@boundless-forest
Copy link
Member

Thanks for your reminder. Would you like to take a look at it? @AurevoirXavier

@AurevoirXavier
Copy link
Member

Thanks for your reminder. Would you like to take a look at it? @AurevoirXavier

This is a known issue from upstream. We can't do anything.

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

No branches or pull requests

3 participants