nervosnetwork/ckb

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

Open

#4.230 geöffnet am 13. Nov. 2023

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Rust (260 Forks)user submission
good first issuep:should-havestalet:enhancement

Repository-Metriken

Stars
 (1.210 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 13T 23h) (29 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide