Skip to content

Commit ac093f1

Browse files
authored
New competition bid source (#674)
## 📝 Summary The whole pipeline has been updated to use `BlockBid` (all bids seen in all relays) instead `CompetitionBid` (single best bid to beat). This change gives more information to the bidding service and implies that the `SlotBidder` is now just a `UnfinishedBlockBuildingSink` and the `BiddingService` gets all the bids by implemening `BlockBidWithStatsObs` ``` pub trait BlockBidWithStatsObs: Send + Sync { /// Be careful, we don't assume any kind of filtering here so bid may contain our own bids. fn update_new_bid(&self, bid_with_stats: BlockBidWithStats); } ``` and is his responsibility to let the active bidders know about the competition bids. The rbuilder now connects to the bid-scraper to get those `BlockBid`. Some other changes: - ethers replaced by alloy - Some refactoring on crates/rbuilder/src/live_builder/config.rs to simplify the creation of other cfgs. - Some lint cleaning. ## 💡 Motivation and Context Get rid of any external dependency to get competition bids. ## ✅ I have completed the following steps: * [X] Run `make lint` * [X] Run `make test` * [ ] Added tests (if applicable)
1 parent f856b78 commit ac093f1

34 files changed

+993
-1236
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ jobs:
114114
name: reth-rbuilder-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}${{ matrix.features && '-' }}${{ matrix.features }}
115115
path: target/${{ matrix.configs.target }}/release/reth-rbuilder
116116

117+
- name: Upload bid-scraper artifact
118+
uses: actions/upload-artifact@v4
119+
with:
120+
name: bid-scraper-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.configs.target }}${{ matrix.features && '-' }}${{ matrix.features }}
121+
path: target/${{ matrix.configs.target }}/release/bid-scraper
122+
123+
117124
draft-release:
118125
name: Draft release
119126
if: ${{ github.event.inputs.draft-release == 'true' || github.event_name == 'push'}} # when manually triggered or version tagged

0 commit comments

Comments
 (0)