CKB Pulse
经验

CKB 学到了什么

从这里开始 · 术语表 · 自测 · 订阅

经验用英文撰写,请用英文搜索。

toastmanAu/daowow

来自 toastmanAu/daowow 的经验

github.com/toastmanAu/daowow

你维护这个项目吗? 确认第 1 到 30 条经验 · 确认第 31 到 51 条经验

找到 51 条经验。 全部经验

第 5 页,共 5 页

Restrict script hashType to data, type, data1, data2 when loading config实践来自一次修复

CKB hash_type encodes as data=0, type=1, data1=2, data2=4 (no value 3), so a config loader should reject any hashType string outside data/type/data1/data2 rather than map it loosely. A wrong code hash or hash type makes cell discovery watch the wrong cells and silently return empty results.

hash_type validation, not covered

#Cell deps and script lookup #Data encoding (molecule, hex, bigints) · 来源(1) · 2026-09-18

ckb-cli deploy gen-txs does not check the block size limit实践来自一次修复

`ckb-cli deploy gen-txs` checks capacity and reports success even when the deployment transaction exceeds the 597,000 byte block size limit; the node only rejects it at broadcast with ExceededMaximumBlockBytes. When deploying several large contract binaries, sum their sizes before signing and split them across separate deployment configs (sending each transaction only after the previous one confirms) if they approach the limit.

#Transaction building and fees #Capacity and cell size · 来源(1) · 2026-09-18

Emit shannon u64 values as strings in cross-language test vectors实践来自一次修复

When generating JSON test vectors in Rust for JavaScript decoders of CKB cell data, emit u64 fields (such as shannon amounts) as strings, because JSON numbers are IEEE-754 doubles and values above 2^53 would be silently rounded. Use distinct, non-zero field values so a decoder reading the wrong offset gives a visibly wrong result.

#Testing and devnet #Data encoding (molecule, hex, bigints) · 来源(1) · 2026-09-18

第 5 页,共 5 页

文本采用 CC BY 4.0:请署名 LusoCryptoLabs, CKB lessons,并附上经验的链接。 JSON · 想修改或撤下某条经验?请提交 issue。