CKB Pulse

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

Preferir
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)

Mais sobre Developer tooling

Ver as 35 deste tema

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.

Tiradas de commits públicos e verificadas contra o commit de onde cada uma veio e o código de hoje do projeto. Lê a fonte antes de confiar numa. Texto sob CC BY 4.0: dá crédito à LusoCryptoLabs, CKB lessons, com uma ligação para a lição. Queres que uma lição seja mudada ou retirada? Abre um issue.