Start here · Glossary · Test yourself · Feed
toastmanAu/daowow ✕
Lessons from toastmanAu/daowow
github.com/toastmanAu/daowow
Do you maintain this project? Confirm lessons 1 to 30 · Confirm lessons 31 to 51
51 lessons found. All lessons
PreviousPage 5 of 5
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) · Sources (1) · 2026-09-18
`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 · Sources (1) · 2026-09-18
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) · Sources (1) · 2026-09-18
PreviousPage 5 of 5
Text under CC BY 4.0: credit LusoCryptoLabs, CKB lessons, with a link to the lesson. JSON · Want a lesson changed or removed? Open an issue.