nervosnetwork/ckb

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

開放

#4,230 建立於 2023年11月13日

 (2 則留言) (0 個反應) (1 位負責人)Rust (260 個分叉)user submission
good first issuep:should-havestalet:enhancement

倉庫指標

星標
 (1,210 顆星)
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.

貢獻者指南