nervosnetwork/ckb

Ensure that the `IntegrationTestRPC::truncate` functionality works properly in non-dev mode

Open

#4 230 ouverte le 13 nov. 2023

Voir sur GitHub
 (2 commentaires) (0 réactions) (1 assigné)Rust (260 forks)user submission
good first issuep:should-havestalet:enhancement

Métriques du dépôt

Stars
 (1 210 stars)
Métriques de merge PR
 (Merge moyen 13j 23h) (29 PRs mergées en 30 j)

Description

Feature Request

Currently, the IntegrationTestRPC::truncate RPC is disabled in non-dev mode, and it doesn't work well in non-dev mode. https://github.com/nervosnetwork/ckb/blob/98678a812023cfbbae363912995e4d3c3eb51458/rpc/src/service_builder.rs#L158-L163

Consider adding the truncate feature as a subcommand in CKB, similar to ckb reset-data. This would be beneficial for non-dev mode usage.

Guide contributeur