From 40fe6f90618a38efe7af8406723c84d0335f69d6 Mon Sep 17 00:00:00 2001 From: GeekRes <42427073+GeekRes@users.noreply.github.com> Date: Tue, 3 Sep 2019 17:55:57 +0800 Subject: [PATCH] modify setStatePruning rpc private (#464) --- cmd/ft/chain.go | 2 +- rpcapi/backend.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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), },