Skip to content

Drop a peer immediately on receiving empty witness#1800

Merged
cffls merged 4 commits intodevelopfrom
witness_improve
Oct 1, 2025
Merged

Drop a peer immediately on receiving empty witness#1800
cffls merged 4 commits intodevelopfrom
witness_improve

Conversation

@cffls
Copy link
Copy Markdown
Contributor

@cffls cffls commented Sep 30, 2025

Description

If a peer announces a witness but responds an empty witness on a request, the peer will be deemed bad and get dropped immediately. This change will simplify the logic of witness manager and make the stateless node more resistant to bad peer behaviors.

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

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

@cffls cffls requested a review from lucca30 September 30, 2025 22:06
@sonarqubecloud
Copy link
Copy Markdown

@cffls cffls merged commit 2d0ebc9 into develop Oct 1, 2025
12 of 14 checks passed
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