Skip to content

Taiyi boost GetHeader #463

@zsluedem

Description

@zsluedem

Describe the bug

Currently, the getHeader method of taiyi boost is not doing anything correctly. https://github.com/lu-bann/taiyi/blob/dev/bin/taiyi-boost/src/builder.rs#L93-L190

  1. When taiyi-boost receive getHeader from validator, taiyi-boost should check whether the slot contains contraints.
  2. If the slot contains contraints, the taiyi-boost should send a getHeaderWithProof to relay to get the proof.
  3. If there is not proof or invalid proof, taiyi-boost should build the block by itself with contraints
  4. If the slot doesn't contain constraints, taiyi-boost should by pass the getHeader request directly to relay
flowchart TD
    A[Validator sends getHeader] --> B{Check if slot contains constraints?}
    B -->|Yes| C[Send getHeaderWithProof to relay]
    B -->|No| D[Forward getHeader directly to relay]
    C --> E{Valid proof received?}
    E -->|Yes| F[Use proof from relay]
    E -->|No| G[Build block with constraints locally]
    F --> H[Return header to validator]
    G --> H
    D --> H
Loading

Steps to reproduce

run taiyi-boost

logs


Platform(s)

Linux (x86)

What version/commit are you on?

dev

What database version are you on?

None

Which chain / network are you on?

devnet

Code of Conduct

  • I agree to follow the Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions