Commit 858bf4a
committed
docs(chains): wave 6 deep research — Litecoin / Dogecoin / Bitcoin Cash (3 BTC forks DIFF-ONLY)
延续 P1-2 28 链 method-level 调研。本 wave 实施护栏 2 最激进 diff-only 模式,
3 BTC fork 链 zh+en 合计 ~1200 行(对比 wave 1-4 平均 460 行/链,本 wave 平均 200 行,**降 56%**)。
## 调研产出
| 链 | zh 行 | en 行 | call | family | 关键发现 |
|---|---|---|---|---|---|
| 19-litecoin | 199 | 199 | 9 | utxo-btc (复用) | RPC 公链几乎不存在(publicnode 404/ankr 403),仅 Esplora REST;100% method 兼容;0 新 DSL 字段 |
| 20-dogecoin | 176 | 176 | 10 | utxo-btc (复用) | RPC 公链彻底没有(全 403/422);scantxoutset 不支持;3 新 DSL ASK |
| 21-bch | 218 | 218 | 19 | utxo-btc (复用) | **context bch.publicnode.com 404**(修正);**CashAddr 新枚举**;无 SegWit/weight;SLP 排除 |
## H8 实证证据(每链)
**Litecoin** (litecoinspace.org Esplora REST + blockchair + blockcypher):
- 真实 height 3,112,566 + hash c72dd1d0... ✅
- 真实 weight 959,787,929 tx/block ✅
- 真实 24h block count 601(实证 ≈ 144s/块 ≈ 2.5min target)✅
- **publicnode.com 不托管 LTC RPC**(404)→ 公链 JSON-RPC 不可用结论,文档真实标注
- 无 ankr 公链(403 paid only)
- 8/8 监控 method schema 与 BTC 完全一致(0 method diff)
- mWEB optional 字段非 breaking(BTC adapter 现有 unknown_type 分支处理)
**Dogecoin** (BlockCypher + Blockchair REST,JSON-RPC 全无):
- 真实 height 6,218,871 + hash 14e0...3018(2 REST 源交叉验证)✅
- 真实 ver=6422788 (0x620104) AuxPoW 版本 flag ✅
- 真实 nonce=0(AuxPoW 期望)
- publicnode 空 / Ankr 403 / NowNodes 422 key-only → JSON-RPC 公链彻底无
- 7/8 method 与 BTC 完全一致;scantxoutset 唯一不支持
- getblock 多 auxpow 子对象;tx 缺 vsize/weight/wtxid(无 SegWit)
- Doge 专属 getauxblock 存在但 benchmark 无关
- 两层 fork(BTC→LTC→DOGE)文档化
**Bitcoin Cash** (rest1.biggestfan.net/v2 + blockchair):
- **context 死端点修正**:bch.publicnode.com 404 Cloudflare → 用 rest1.biggestfan.net/v2 (BCHN 29.0.0 EB32.0 backend)
- 真实 height 952,310 ✅
- 真实 NetworkInfo EB32.0 signature(32MB excessive block size)✅
- 真实 MempoolInfo maxmempool=2GB(BTC 默认 300MB,BCH 大块设计)
- 真实 getBlock 不返 weight 字段(确证无 SegWit)
- 8/10 method byte-identical BTC
- BCHN-specific getexcessiveblock RPC(benchmark 可选)
- BCH genesis hash 与 BTC **完全相同**(fork 至 height 478559)
- SLP token 正确排除 benchmark(OP_RETURN + 需 SLPDB 非 RPC)
## DSL ASK 增量收敛(本 wave)
**Litecoin** — 0 新增(完美复用)
- 仅参数化已有字段:block_time_target_s=150, default_rpc_port=9332, magic_bytes, address_prefixes.bech32_hrp="ltc", genesis_hash, public_rest=[litecoinspace.org], public_rpc=[]
- 无 LitecoinAdapter 类,无 mock 新分支
**Dogecoin** — 3 ASK(关键新需求)
1. **auxpow_enabled** boolean(或 chain_specific 子表) — wave 6 只 Doge 用,可能 Namecoin/RSK 也需
2. **unsupported_methods** 提到 _template.md 标准字段(Doge scantxoutset / BCH 可能 / LTC mWEB)
3. **requires_self_hosted: true** flag — runner 跳过公链 endpoint 发现(Doge 真实零公链 JSON-RPC)
**BCH** — 1 ASK(预测命中)
- **address_format 枚举扩 cashaddr**(03-bitcoin.md L402:[base58check, bech32, bech32m] → BCH:[cashaddr, base58check])
- CashAddr polymod generator 与 Bech32 不同,不可互换,需 ~150 LOC tools/cashaddr_codec.py 实现
- 无其他新字段
## 累计 DSL ASK 状态(wave 1+2+3+4+5+6 = 19 链)
新增字段(wave 6):
- **auxpow_enabled** (Doge,可能扩 Namecoin/RSK)
- **unsupported_methods** array(wave 6 标准化)
- **requires_self_hosted** bool(BTC fork 普遍零公链 RPC,wave 7/8 预期复用)
- **address_format.cashaddr** 新枚举值(BCH)
累计 address_format 枚举:hex / near / bech32 / ss58 / base58check_tprefix / base32_checksum / tezos_4prefix / hedera_3part / evm_hex_long_zero / evm_hex_ecdsa_alias / **cashaddr**
## Adapter 决策
- LitecoinAdapter:**不新建**,BitcoinAdapter 100% 复用
- DogecoinAdapter:**不新建**,BitcoinAdapter 复用 + auxpow_enabled + unsupported_methods 配置
- BCHAdapter:**不新建**,BitcoinAdapter 复用 + CashAddr codec 工具(tools/cashaddr_codec.py)
- 全部 family=utxo-btc(wave 1 Bitcoin family 命名提前预留 fork 复用空间,本 wave 验证决策正确)
## 累计进度
- 6 链 (wave 1+2):Bitcoin / Aptos / Cosmos / Cardano / Polkadot / NEAR ✅ commit 6897ecc
- 3 链 (wave 3):Tron / Algorand / Tezos ✅ commit d7b39f1
- 3 链 (wave 4):Avalanche-C / Avalanche-X / Hedera ✅ commit 372e98c
- 4 链 (wave 5):Arbitrum / Optimism / zkSync / Linea ✅ commit 286666b
- 3 链 (wave 6):Litecoin / Dogecoin / BCH ✅ 本 commit
- **累计 19 链调研完成 + 1 P2-DESIGN 设计稿(28 链总目标的 68%)**
## 护栏触发记录(① + 4 护栏)
**护栏 1 commit-per-wave**:本 commit 触发 ✅
**护栏 2 diff-only 最激进版**:平均 200 行/链,wave 1-4 平均 460 → wave 5 平均 252 → wave 6 平均 200(**累计降 56%**)✅
**护栏 3 fail-fast**:无 timeout(最长 BCH 355s)✅
**护栏 4 决策反转检测**:
- Doge requires_self_hosted 是新场景需求,不反转 wave 1-5 ✅
- BCH CashAddr 扩枚举与 Hedera/Avalanche-X 模式一致,不反转 ✅
- **关键证实**:wave 1 Bitcoin family 命名"utxo-btc"(不裸 utxo)的决策让 BCH/Doge/LTC 都能并列复用,wave 4 Avalanche-X 加 avalanche-utxo 同理,wave 6 实证 family 命名前瞻性正确
## 关键运营信号(对 wave 7+8)
BTC fork 公链 RPC 缺失是普遍问题:
- LTC publicnode 404 / ankr 403
- Doge 全部公链 403/422/空
- BCH context 给的 publicnode 404(修正用 rest1.biggestfan.net)
wave 7 Cosmos 生态 / wave 8 Substrate 应预期类似挑战。
requires_self_hosted 字段在 wave 7+8 复用预期高。
## 已知未实证项(透明标注)
**Litecoin**:mWEB 字段实际 schema 未验(需 mWEB 实际 tx)
**Dogecoin**:dogechain.info Cloudflare gated,无第三 source 验证
**BCH**:SLP token 路径未深入(确认排除 benchmark 后停)
## 老测保护
无代码改动,纯文档新增。
Refs: P1-2 (28 链调研), P2-DESIGN-v2 (DSL spec)1 parent 286666b commit 858bf4a
6 files changed
Lines changed: 1186 additions & 0 deletions
File tree
- docs
- en/chains
- zh/chains
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
0 commit comments