nervosnetwork/ckb
在 GitHub 查看Ensure that the `IntegrationTestRPC::truncate` functionality works properly in non-dev mode
Open
#4,230 创建于 2023年11月13日
good first issuep:should-havestalet:enhancement
仓库指标
- Star
- (1,210 star)
- PR 合并指标
- (平均合并 13天 23小时) (30 天内合并 29 个 PR)
描述
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.