nervosnetwork/ckb

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

オープン

#4,230 opened on 2023/11/13

 (2 件のコメント) (0 件のリアクション) (1 人の担当者)Rust (260 件のフォーク)user submission
good first issuep:should-havestalet:enhancement

Repository metrics

Stars
 (1,210 個のスター)
PR merge metrics
 (平均マージ 13d 23h) (30d で 29 merged PRs)

説明

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.

コントリビューターガイド