Skip to content

v1.11.6-statediff-5.0.6

Compare
Choose a tag to compare
@telackey telackey released this 21 Jul 19:26

What's Changed

  • 367: Fix deferred rollback on error. by @telackey in #391
  • 367: Check if the statediff is already in progress or completed. by @telackey in #392
  • 292: Backfill gaps in the recent past on startup when tracking head. by @telackey in #395
  • 396: Don't skip any blocks if the head of the chain advances by more than one block. by @telackey in #397
  • 398: Statediff missing parent blocks automatically. by @telackey in #399

Major Changes in v5

Database changes:

  • Requires new schema: https://github.com/cerc-io/ipld-eth-db/tree/v5
  • uncle_hash => uncles_hash
  • mh_key => cid
  • state_cids now only stores leaf nodes, so the PK can use leaf_key in its tuple
  • state_accounts table internalized into state_cids since each record corresponds to an account now
  • storage_cids now only stores leaf nodes, so the PK can use leaf_key in its tuple
  • leaf_cid => cid in receipt_cids and log_cids tables
  • no more access_list_elements table
  • public.blocks => ipld.blocks

Statediff process changes:

  • no longer write log trie, tx trie, and rct trie IPLD objects to ipld.blocks (we can materialize them on demand if needed, or cache using a "proof watcher")
  • fix internalized leaf node issues

Misc:

  • refactor database abstraction for better reusability
  • refactor ipld package
  • removed a lot of now (or, in some cases, also previously) unused code
  • v1.11.5 geth rebase

Full Changelog: v1.11.6-statediff-5.0.5-alpha...v1.11.6-statediff-5.0.6