CodeChain-io / CodeChain-io/codechain

Add integration tests for invalid P2P sync messages

未關閉
#774 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
test verification
主要語言
Rust
星號
256
分支
50
PR 合併指標
30 天內沒有已合併 PR

描述

* Block sync
- [ ] Invalid fields
- [x] Invalid parent
- [ ] Invalid timestamp
- [x] Invalid number
- [x] Invalid author
- [x] Invalid extradata
- [x] Invalid parcelroot
- [x] Invalid stateroot
- [x] Invalid invoiceroot
- [x] Invalid score
- [x] Invalid seal
- [ ] Invalid size
- [ ] Invalid status message scenario
- [ ] Mismatch between block header and body
- [ ] Invalid seal in pow consensus
---
* Parcel sync
- [x] Invalid fields
- [x] Invalid fee
- [x] Invalid nonce
- [x] Invalid networkid
- [x] Invalid signature
- [ ] Invalid size

貢獻指南

開啟貢獻指南

研究方向

Start by locating the existing integration tests and P2P block- and parcel-sync entry points; the issue names no files or test targets. Cover the unchecked invalid-message cases listed in the issue, including invalid timestamps, sizes, status scenarios, header/body mismatches, and invalid proof-of-work seals. Done means the listed scenarios have integration-test coverage.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
rust
領域
blockchain, networking, testing
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。