Skip to content

activation-service requires restart after every runtime upgrade #1077

@sameh-farouk

Description

@sameh-farouk

Problem

activation-service fails with 1010: Invalid Transaction: Transaction has a bad signature after a TFChain runtime upgrade, requiring a manual Docker restart to recover.

Root cause: tfgrid-api-client calls ApiPromise.create({ provider, types }) once at startup. The @polkadot/api instance caches the runtime specVersion at init time and uses it when building transaction signing payloads. After a runtime upgrade:

  1. specVersion bumps on-chain
  2. The API's cached version is stale
  3. Signed transactions carry the old specVersion → node rejects with bad signature

Additionally, the static types.json becomes a drift risk: any structural type change in the runtime is not reflected until the package is manually updated and redeployed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions