decipherhub / decipherhub/cipherbft

[Testing] Add network and P2P layer tests

Open
#35 0 comments 0 reactions 0 assignees View on GitHub
priority: high testing
Dominant language
Rust
Stars
9
Forks
1
PR merge metrics
No merged PRs in 30d

Description

## Problem

Current test coverage:
- **Total tests**: 433
- **Network/P2P tests**: 0

No tests for:
- Message propagation
- Peer discovery
- Connection handling
- Network partitions
- Byzantine scenarios

## Risk

- Network failures undetected until production
- Message loss handling untested
- Reconnection logic unverified

## Required Tests

1. Basic peer connectivity
2. Message broadcast/receive
3. Connection drop and reconnect
4. Network partition simulation
5. Malformed message handling
6. Rate limiting behavior

## Affected Crates

- `crates/consensus` (network layer)
- `crates/data-chain` (primary/worker communication)
- `crates/node` (peer management)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.