CKB Pulse

Todas as lições · CKB node, RPC and indexer · Começa aqui · Glossário

A rejected or unknown get_transaction status does not make a signed transaction deadPráticoDe uma correção

De uma correção · Verificação: certa · Verificada em 2026-11-19

A node reporting a transaction you sent as rejected or unknown does not prove it is dead: one node's answer is not proof, and while all its inputs are live the signed bytes could still be rebroadcast by someone and commit. Only release its reserved inputs if a later transaction is guaranteed to conflict with it (here a shared pool cell every later action must spend, so at most one can commit), and also require that every input is still live, that the status is still rejected or unknown when rechecked after the input reads, and that the submission is old enough (2 minutes here), behind an explicit confirmation.

Porque importa: If inputs are freed on a single node's rejected or unknown report, a new action can be built that does not conflict with the old signed transaction, and both may commit if someone rebroadcasts the old bytes while its inputs are still live.

Padrão

requireRecovery(poolInput,'not a pool transaction; nothing guarantees a later conflict');

Um teste mudou no mesmo commit

Está ao lado da correcção. Nós não o corremos.

Conceitos
Transaction building and fees, Network and RPC reliability
Evidência
De uma correção: de um projeto, verificada contra o commit
Vista pela primeira vez
2026-10-26
Última mudança
2026-10-26
Ú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 CKB node, RPC and indexer

Ver as 45 deste tema

Manténs um projeto de onde esta lição veio? Confirma ou corrige

Citar esta lição
LusoCryptoLabs, "A rejected or unknown get_transaction status does not make a signed transaction dead", CKB lessons, https://pulse.lusocryptolabs.com/learned/node/a-rejected-or-unknown-get-transaction-status-does-not-make-a, CC BY 4.0, last changed 2026-10-26.

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.