Skip to content

Commit

Permalink
modify setStatePruning rpc private (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
geekres authored and erickyan86 committed Sep 3, 2019
1 parent 647cfa1 commit 40fe6f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/ft/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion rpcapi/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func GetAPIs(apiBackend Backend) []rpc.API {
Service: NewPrivateTxPoolAPI(apiBackend),
},
{
Namespace: "ft",
Namespace: "bc",
Version: "1.0",
Service: NewPrivateBlockChainAPI(apiBackend),
},
Expand Down

0 comments on commit 40fe6f9

Please sign in to comment.