diff --git a/cmd/ft/chain.go b/cmd/ft/chain.go index d5d189a5..5fdcda98 100644 --- a/cmd/ft/chain.go +++ b/cmd/ft/chain.go @@ -63,7 +63,7 @@ func pruneState(arg string) error { } result := new(types.BlockState) - clientCall(ipcEndpoint, &result, "ft_setStatePruning", enable) + clientCall(ipcEndpoint, &result, "bc_setStatePruning", enable) printJSON(result) return nil } diff --git a/rpcapi/backend.go b/rpcapi/backend.go index dfcac80b..9a1d208c 100644 --- a/rpcapi/backend.go +++ b/rpcapi/backend.go @@ -102,7 +102,7 @@ func GetAPIs(apiBackend Backend) []rpc.API { Service: NewPrivateTxPoolAPI(apiBackend), }, { - Namespace: "ft", + Namespace: "bc", Version: "1.0", Service: NewPrivateBlockChainAPI(apiBackend), },