Skip to content

Conversation

@0xbillw
Copy link
Member

@0xbillw 0xbillw commented Jul 3, 2025

Features:

  1. Refactor RRSC consensus implementation: extend based on BABE consensus instead of duplicating code
  2. Introduce BEEFY consensus
  3. Refactor TEE Worker: integrate Light-Client to sync blocks and optimize its interaction with the on-chain network
  4. Upgrade Gramine framework version to 1.9
  5. Upgrade the operating system version for the container image: Ubuntu-22, Debian-12

Issues Resolved:

  1. Maintenance problems of RRSC code after upgrading polkadot-sdk
  2. Memory bloat in TEE Worker caused by flaws in the block synchronization mechanism
  3. Memory leak in the chain node of the RPC module serving TEE Worker after the polkadot-sdk upgrade
  4. Closes: Refactor RRSC #436 Bug: ceseal seems hang up when dns probe failed #433 A fatal error occurs when TEE is started. #410

Impact

  1. This update requires resetting the network or migrating chain data
  2. Existing chain nodes and TEE Workers on the current testnet cannot be upgraded directly
  3. Storage miners wishing to continue operations on the testnet only need to redirect to the migrated new chain

Release Plan

  1. This PR is for advance code review only and will not be merged yet
  2. The release will be determined after the testnet migration acceptance testing is completed

0xbillw added 30 commits June 23, 2025 10:11
…oSolver, and copying `BABE`'s code to implement it is actually not advisable
1. Refactor the RRSC vote resolver and back to BABE consensus.
2. Introduce BEEFY consensus to support the use of Light-Client.
3. Introducing Light-Client to address the trustless block synchronization issue in `ceseal`.
4. Reconstruct the block synchronization, inter-chain communication, and code structure of `ceseal`.
0xbillw added 11 commits July 10, 2025 10:23
…e2412-6` instead of volatile branch to track `polkadot-sdk`)

The latest release tag for `stable2412` is `polkadot-stable2412-7`. Testing has shown that updating to this version causes frequent errors in RPC calls from light clients (`smoldot`) and existing client SDK code. This may be because this version uses `litep2p` as the default library for `substrate`. watch this: paritytech/polkadot-sdk#8461
…-codec` to `3.7.5` and some scale relative crates
@0xbillw 0xbillw merged commit 41ed0d8 into main Aug 14, 2025
1 check passed
@0xbillw 0xbillw deleted the feat/testnet2 branch August 14, 2025 01:35
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.

Refactor RRSC

4 participants