Skip to content

Implement 3SF-mini core for lean consensus #670

@unnawut

Description

@unnawut

Describe the feature

It should be possible to reuse most of the code from our rust implementation at https://github.com/ReamLabs/rust-3sf. Take note that some parts like Rc and RefCell might not be needed as they were workaround for simulating networking under a single process.

TODOs

  • Move https://github.com/ReamLabs/rust-3sf into ream repo as-is
  • Convert Vec to SSZ-compatible VariableList
  • Convert HashMap attributes to something SSZ-compatible
  • Remove Stakers::num_validators and refer to a fixed validator list in the state instead
  • Get rid of Option<Hash> in Block::parent and Block::state_root
  • Add proper error handling

Additional context

No response

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions