Skip to content

sidechain jams pending extrinsics (one extrinsic nonce skipped?) #1594

@brenzi

Description

@brenzi

Since running against polkadot-1.6.0 para (or since running SBliff legacy), we observe that after a few minutes or hours of operation, the validateer can't send extrinsics to the para anymore

checking pending extrinsics on the validateers rpc node (on same machine) shows that pending extrinsics are stacking up. The other nodes in the network don't see these extrinsics (or banned them?)

  1. run validateer and wait until no more block confirmation events onchain
    • last sidechain.FinalizedSidechainBlock: sidechain: 75,441, integritee: 7950
    • last enclaveBridge.ProcessedParentchainBlock: 7946
  2. verify there are pending extrinsics on the validateers rpc node
  3. restart rpc node
  1. restart SCV
    • first attempt:
      • first xt gets included (register QE collateral)
      • second xt fails with (register TCBinfo) Transaction is outdated
    • in the same block we get
      • 472x enclaveBridge.ProcessedParentchainBlock (7948..8419)
      • 1x sidechain.FinalizedSidechainBlock(#75521) (only one valid. many failed with sidechain.AncestorNumberMismatch which makes sense all tried ancestor 75381) failures:(75461..81041 in steps of 20)
  2. restart SCV again
    • smooth start.
      • first enclaveBridge.ProcessedParentchainBlock: 8420
      • first sidechain.FinalizedSidechainBlock: 81061,

The fact that restarting the SCV triggers the avalanche tells me that all jammed extrinsics had futurestatus and that the next expected nonce was only coming in after the SCV restart fetched the latest nonce from the chain fresh.

possible workaround:

  • upon each parentchain block import, refresh nonce. but that may still not be acceptable becasue we can't afford missing a single extrinsic (could be unshield)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions