Todas as lições · CKB node, RPC and indexer · Começa aqui · Glossário
Indexer RPC module must be listed in ckb.toml rpc modules for get_cells on devnetPráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 2026-11-19
CKB serves get_cells, get_indexer_tip and the other indexer RPC methods only when "Indexer" is listed in the [rpc] modules array of ckb.toml. The ckb.toml generated in the nervos/ckb 0.209.0 devnet image used here leaves Indexer out, so add it before relying on cell collection against a devnet node. Then confirm with a real indexer call such as get_cells after the node starts.
Porque importa: Without Indexer in the rpc modules, get_cells is unavailable on the devnet node, so cell discovery code cannot be exercised and fails confusingly mid-implementation instead of as a missing prerequisite.
Um teste mudou no mesmo commit
Está ao lado da correcção. Nós não o corremos.
- toastmanAu/daowow:
tests/devnet/node_harness.py,tests/devnet/test_node_harness.py
- Conceitos
- Indexer queries and cell collection, Testing and devnet
- 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 CKB node, RPC and indexer
- Conflict an orphaned transaction's input on the winning branch when testing a reorg rollback
- Indexer free cell discovery by block scan plus get_live_cell on a local chain
- Never pass the terminal "0x" cursor back to indexer get_cells
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "Indexer RPC module must be listed in ckb.toml rpc modules for get_cells on devnet", CKB lessons, https://pulse.lusocryptolabs.com/learned/node/indexer-rpc-module-must-be-listed-in-ckb-toml-rpc-modules-fo, CC BY 4.0, last changed 2026-09-18.