Todas as lições · Developer tooling · Começa aqui · Glossário
ckb-cli deploy gen-txs does not check the block size limitPráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 2026-11-19
`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.
Porque importa: The deployer signs a transaction that gen-txs reported as successful, and only learns at broadcast that the node refuses it with ExceededMaximumBlockBytes because the combined binaries push it past the 597,000 byte block size limit.
Padrão
const BLOCK_SIZE_LIMIT = 597000; const estimate = total + OVERHEAD_BASE + OVERHEAD_PER_CELL * files.length;Tirado do commit, encurtado.
- Conceitos
- Transaction building and fees, Capacity and cell size
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-09-18
- Última mudança
- 2026-09-18
- Última verificação
- 2026-11-19
- Verificação contra o commit
- certa: a lição sai do commit e continua a valer no código de hoje
Fontes (1)
- 2026-09-18 · toastmanAu/daowow · mais deste projeto
Mais sobre Developer tooling
- ckb-cli deploy info file layout for offline multisig signing
- ckb-cli needs --skip-check to sign and send transactions with custom locks
- ckb-cli tx init overwrites an existing tx file with an empty skeleton
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "ckb-cli deploy gen-txs does not check the block size limit", CKB lessons, https://pulse.lusocryptolabs.com/learned/tooling/ckb-cli-deploy-gen-txs-does-not-check-the-block-size-limit, CC BY 4.0, last changed 2026-09-18.