Skip to content

Conversation

@v1rtl
Copy link

@v1rtl v1rtl commented Jan 16, 2026

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

@v1rtl v1rtl force-pushed the wasm-second-iteration branch from a4d314b to 2d9c37d Compare January 16, 2026 15:40
@v1rtl v1rtl force-pushed the wasm-second-iteration branch from 52ca890 to c598404 Compare January 22, 2026 20:31
@v1rtl v1rtl force-pushed the wasm-second-iteration branch from c598404 to fc0682a Compare January 22, 2026 20:42
gacevicljubisa and others added 8 commits January 23, 2026 11:28
…y check

The bee260BackwardCompatibility function was incorrectly treating
pre-release versions (e.g., 2.7.0-rc12) as less than their stable
counterparts (2.7.0) due to semver spec behavior. This caused nodes
running 2.7.0-rc versions to incorrectly enable backward compatibility
mode, stripping WSS addresses and limiting connections to TCP only.

Changes:
- Modified bee260BackwardCompatibility to compare only major.minor.patch
  by creating a clean version without pre-release metadata
- Added debug logging for version compatibility decisions
- Extracted bee260Compat variable in Connect and handleIncoming for clarity
- Added comprehensive test coverage with 17 test cases including:
  * Legacy versions (< 2.7.0) requiring backward compat
  * Current/future versions (>= 2.7.0) not requiring backward compat
  * Pre-release versions (2.7.0-rcX) correctly treated as >= 2.7.0
  * Edge cases (empty, malformed, non-bee user agents)

Fixes browser node connectivity issues where they only received TCP
addresses instead of both TCP and WSS addresses from peers running
pre-release versions.
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.

2 participants