Skip to content

Make fork-off-substrate greate again#141

Closed
s0me0ne-unkn0wn wants to merge 1 commit intomaxsam4:masterfrom
s0me0ne-unkn0wn:master
Closed

Make fork-off-substrate greate again#141
s0me0ne-unkn0wn wants to merge 1 commit intomaxsam4:masterfrom
s0me0ne-unkn0wn:master

Conversation

@s0me0ne-unkn0wn
Copy link
Copy Markdown

What's it all about

  • Node.JS has a hardcoded limitation of 512 Mb for string length. Because of that, storage state of mainline networks cannot be read and forked spec cannot be written synchronously as they are much bigger already (current Westend storage state JSON takes ~840 Mb). To address that, streamed reading and writing was implemented. This also fixes Polkadot state JSON not parsable #87;
  • Runtime module name ParasScheduler is outdated, current implementation names it ParaScheduler.

Caveats

Stringifying with big-json is dead slow and may take up to 10 minutes to write a Westend forked spec. Didn't test with other networks.

Fix `ParaScheduler` runtime module name
@s0me0ne-unkn0wn s0me0ne-unkn0wn closed this by deleting the head repository Oct 30, 2023
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 this pull request may close these issues.

Polkadot state JSON not parsable

1 participant