flashbots / flashbots/unichain-builder

Feat: FlashblocksBundle as a specialized FlashbotsBundle

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
3
Forks
3
PR merge metrics
No merged PRs in 30d

Description

`FlashblocksBundle` in flashblocks and [`FlashbotsBundle`](https://github.com/flashbots/rblib/blob/fc9a7077c1902f0fa0078b50f9e9ebec3b824196/src/platform/bundle.rs#L196) in dependency rblib share lots of same logic.

It would be nice to define FlashblocksBundle as a specialized implementation of FlashbotsBundle, i.e. `FlashblocksBundle = FlashbotsBundle`

There are slight differences such as single target block number / min_block_number and max_block_number.
If necessary we could make `FlashbotsBundle` more generic as a trait with some default impl, provide a `FlashbotsEthBundle` in rblib (same as current FlashbotsBundle), and be able to easily implement FlashblocksBundle here. It could make support of different bundle versions easier. In that case we can move this issue to rblib.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.