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.
- toastmanAu/openswap:
frontend/test/pools.spec.ts,pool-sdk/test/recovery.test.ts
- 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)
- 2026-10-26 · toastmanAu/openswap · mais deste projeto
Mais sobre CKB node, RPC and indexer
- send_transaction error -1111 (PoolRejectedRBF) is a conflict, not "already in pool"
- Check indexer lag with get_indexer_tip before signing
- Check original tx unknown and input live on independent nodes before same input cancellation
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.