Remove backwards compatibility code to clean up codebase
Description
The codebase contains backwards compatibility code for Bee version 2.6.0 and potentially other older versions. As the network moves forward, this compatibility code is no longer needed and should be removed to improve code quality, performance, and maintainability.
Bee 2.6.0 Compatibility Code
The following Bee 2.6.0-specific compatibility code has been identified:
Affected files:
Interfaces to remove:
p2p.Bee260CompatibilityStreamer interface
Other Legacy Compatibility Code
Additional backwards compatibility code exists that may also be outdated:
Legacy address format compatibility:
Other legacy code:
Benefits
Removing this backwards compatibility code will:
- Simplify the codebase - Less conditional logic and special case handling
- Improve performance - Remove unnecessary version checks and filtering operations
- Reduce maintenance burden - Fewer edge cases to test and maintain
- Clean up interfaces - Remove compatibility-specific interfaces and types
- Improve code readability - Clearer intent without compatibility workarounds
Recommendation
Before removal, ensure that:
- The network has sufficiently upgraded beyond version 2.6.0
- A deprecation notice has been communicated to node operators
- Any remaining nodes on old versions are identified and can be notified
Tasks
Remove backwards compatibility code to clean up codebase
Description
The codebase contains backwards compatibility code for Bee version 2.6.0 and potentially other older versions. As the network moves forward, this compatibility code is no longer needed and should be removed to improve code quality, performance, and maintainability.
Bee 2.6.0 Compatibility Code
The following Bee 2.6.0-specific compatibility code has been identified:
Affected files:
WithBee260Compatibilityoption and fieldIsBee260()andbee260BackwardCompatibility()methodsbee260Compatibilitytracking map and related methodsFilterBee260CompatibleUnderlays()functionBee260CompatibilityStreamerinterface usageInterfaces to remove:
p2p.Bee260CompatibilityStreamerinterfaceOther Legacy Compatibility Code
Additional backwards compatibility code exists that may also be outdated:
Legacy address format compatibility:
Underlayfield inaddressJSONfor backward compatibilityTestLegacyCompatibilitytestOther legacy code:
LegacyKeccak256()functionBenefits
Removing this backwards compatibility code will:
Recommendation
Before removal, ensure that:
Tasks
bee260Compatibilitytracking from peer registryBee260CompatibilityStreamerinterface