Skip to content

Conversation

@marcello33
Copy link
Collaborator

@marcello33 marcello33 commented Dec 18, 2025

Description

In this PR, we implement some improvements to bor client:

  1. improve the client for stable communication with heimdall via gRPC and better handle the errors/shutdown (# 12)
  2. Fix checkpoint root computation (# 18)
  3. Fix milestone whitelist concurrency bug (# 22)
  4. Fix bor checkpoint merkle root reorg (# 23)

Changes

  • Bugfix (non-breaking change that solves an issue)
  • Hotfix (change that solves an urgent issue, and requires immediate attention)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)
  • Changes only for a subset of nodes

Checklist

  • I have added at least 2 reviewer or the whole pos-v1 team
  • I have added sufficient documentation in code
  • I will be resolving comments - if any - by pushing each fix in a separate commit and linking the commit hash in the comment reply
  • Created a task in Jira and informed the team for implementation in Erigon client (if applicable)
  • Includes RPC methods changes, and the Notion documentation has been updated

Testing

  • I have added unit tests
  • I have added tests to CI
  • I have tested this code manually on local environment
  • I have tested this code manually on remote devnet using express-cli
  • I have tested this code manually on amoy
  • I have created new e2e tests into express-cli

@marcello33 marcello33 requested a review from a team December 18, 2025 11:44
@codecov
Copy link

codecov bot commented Dec 18, 2025

Codecov Report

❌ Patch coverage is 50.64103% with 77 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.47%. Comparing base (4c7bce2) to head (73b2c05).
⚠️ Report is 52 commits behind head on develop.

Files with missing lines Patch % Lines
consensus/bor/heimdallgrpc/client.go 0.00% 28 Missing ⚠️
consensus/bor/api.go 71.69% 11 Missing and 4 partials ⚠️
eth/ethconfig/config.go 0.00% 15 Missing ⚠️
eth/downloader/whitelist/milestone.go 62.85% 10 Missing and 3 partials ⚠️
eth/bor_checkpoint_verifier.go 76.00% 6 Missing ⚠️

❌ Your patch check has failed because the patch coverage (50.64%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1950      +/-   ##
===========================================
+ Coverage    47.93%   48.47%   +0.54%     
===========================================
  Files          844      844              
  Lines       144067   144318     +251     
===========================================
+ Hits         69062    69965     +903     
+ Misses       70479    69702     -777     
- Partials      4526     4651     +125     
Files with missing lines Coverage Δ
consensus/bor/bor.go 23.08% <ø> (+0.56%) ⬆️
eth/bor_checkpoint_verifier.go 45.81% <76.00%> (+44.71%) ⬆️
eth/downloader/whitelist/milestone.go 82.07% <62.85%> (+3.81%) ⬆️
consensus/bor/api.go 29.34% <71.69%> (+29.34%) ⬆️
eth/ethconfig/config.go 0.00% <0.00%> (ø)
consensus/bor/heimdallgrpc/client.go 0.00% <0.00%> (ø)

... and 34 files with indirect coverage changes

Files with missing lines Coverage Δ
consensus/bor/bor.go 23.08% <ø> (+0.56%) ⬆️
eth/bor_checkpoint_verifier.go 45.81% <76.00%> (+44.71%) ⬆️
eth/downloader/whitelist/milestone.go 82.07% <62.85%> (+3.81%) ⬆️
consensus/bor/api.go 29.34% <71.69%> (+29.34%) ⬆️
eth/ethconfig/config.go 0.00% <0.00%> (ø)
consensus/bor/heimdallgrpc/client.go 0.00% <0.00%> (ø)

... and 34 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link

github-actions bot commented Jan 9, 2026

This PR is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions bot added Stale and removed Stale labels Jan 9, 2026
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
3.9% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants