From 05c1fe897080a9d39f8fe22ea22979a2ff45cd11 Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Tue, 4 Nov 2025 15:46:05 +0800 Subject: [PATCH] fix(rpc): method name of V0 only RPC methods --- scripts/tests/api_compare/filter-list | 2 -- src/rpc/methods/state.rs | 4 ++-- src/tool/subcommands/api_cmd/test_snapshots_ignored.txt | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/tests/api_compare/filter-list b/scripts/tests/api_compare/filter-list index 6e76f705cca3..0656b736d920 100644 --- a/scripts/tests/api_compare/filter-list +++ b/scripts/tests/api_compare/filter-list @@ -1,4 +1,2 @@ # This list contains potentially broken methods (or tests) that are ignored. # They should be considered bugged, and not used until the root cause is resolved. -# Disable until next Lotus release with go-f3 0.8.6 -!Filecoin.F3GetManifest diff --git a/src/rpc/methods/state.rs b/src/rpc/methods/state.rs index 0a35f910b9d6..232ceb86497f 100644 --- a/src/rpc/methods/state.rs +++ b/src/rpc/methods/state.rs @@ -1109,7 +1109,7 @@ impl RpcMethod<2> for StateGetReceipt { pub enum StateWaitMsgV0 {} impl RpcMethod<2> for StateWaitMsgV0 { - const NAME: &'static str = "Filecoin.StateWaitMsgV0"; + const NAME: &'static str = "Filecoin.StateWaitMsg"; const PARAM_NAMES: [&'static str; 2] = ["messageCid", "confidence"]; const API_PATHS: BitFlags = make_bitflags!(ApiPaths::V0); // Changed in V1 const PERMISSION: Permission = Permission::Read; @@ -2047,7 +2047,7 @@ impl RpcMethod<1> for StateGetBeaconEntry { pub enum StateSectorPreCommitInfoV0 {} impl RpcMethod<3> for StateSectorPreCommitInfoV0 { - const NAME: &'static str = "Filecoin.StateSectorPreCommitInfoV0"; + const NAME: &'static str = "Filecoin.StateSectorPreCommitInfo"; const PARAM_NAMES: [&'static str; 3] = ["minerAddress", "sectorNumber", "tipsetKey"]; const API_PATHS: BitFlags = make_bitflags!(ApiPaths::V0); // Changed in V1 const PERMISSION: Permission = Permission::Read; diff --git a/src/tool/subcommands/api_cmd/test_snapshots_ignored.txt b/src/tool/subcommands/api_cmd/test_snapshots_ignored.txt index 9e5938b7bc77..788e84527fd6 100644 --- a/src/tool/subcommands/api_cmd/test_snapshots_ignored.txt +++ b/src/tool/subcommands/api_cmd/test_snapshots_ignored.txt @@ -61,8 +61,6 @@ Filecoin.NodeStatus Filecoin.Shutdown Filecoin.StartTime Filecoin.StateGetReceipt -Filecoin.StateSectorPreCommitInfoV0 -Filecoin.StateWaitMsgV0 Filecoin.SyncCheckBad Filecoin.SyncMarkBad Filecoin.SyncSubmitBlock