CKB Pulse

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

Conflict an orphaned transaction's input on the winning branch when testing a reorg rollbackAvançadoDe uma correção

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

In a CKB devnet reorg test, transactions from detached blocks can return to the txpool and be committed again on the winning branch, which hides the rollback you want to observe. Have the winning branch spend one input of the orphaned transaction, such as its fee input, before the branches reconnect. Resubmitting the old transaction is then rejected with TransactionFailedToResolve (-301), and you must rebuild it with fresh funding.

Porque importa: Without a conflicting spend, the orphaned transaction can be recommitted through the txpool after the reorg, so the test cannot show the rolled-back state.

Conceitos
Testing and devnet, Indexer queries and cell collection
Evidência
De uma correção: de um projeto, verificada contra o commit
Vista pela primeira vez
2026-10-10
Última mudança
2026-10-10
Ú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, "Conflict an orphaned transaction's input on the winning branch when testing a reorg rollback", CKB lessons, https://pulse.lusocryptolabs.com/learned/node/conflict-an-orphaned-transaction-s-input-on-the-winning-bran, CC BY 4.0, last changed 2026-10-10.

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.