-
Notifications
You must be signed in to change notification settings - Fork 15
Taiyi boost GetHeader #463
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
- When taiyi-boost receive getHeader from validator, taiyi-boost should check whether the slot contains contraints.
- If the slot contains contraints, the taiyi-boost should send a getHeaderWithProof to relay to get the proof.
- If there is not proof or invalid proof, taiyi-boost should build the block by itself with contraints
- 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
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working