Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(stake2.0): optimize code, remove useless code #4997

Merged
merged 1 commit into from
Feb 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
import org.tron.common.parameter.CommonParameter;
import org.tron.core.config.args.Args;
import org.tron.core.services.filter.HttpApiAccessFilter;
import org.tron.core.services.http.DelegateResourceServlet;
import org.tron.core.services.http.EstimateEnergyServlet;
import org.tron.core.services.http.FreezeBalanceV2Servlet;
import org.tron.core.services.http.FullNodeHttpApiService;
import org.tron.core.services.http.GetAccountByIdServlet;
import org.tron.core.services.http.GetAccountServlet;
Expand Down Expand Up @@ -61,9 +59,6 @@
import org.tron.core.services.http.ScanShieldedTRC20NotesByIvkServlet;
import org.tron.core.services.http.ScanShieldedTRC20NotesByOvkServlet;
import org.tron.core.services.http.TriggerConstantContractServlet;
import org.tron.core.services.http.UnDelegateResourceServlet;
import org.tron.core.services.http.UnFreezeBalanceV2Servlet;
import org.tron.core.services.http.WithdrawExpireUnfreezeServlet;


@Component
Expand Down Expand Up @@ -174,16 +169,6 @@ public class SolidityNodeHttpApiService implements Service {
@Autowired
private GetBlockServlet getBlockServlet;

@Autowired
private FreezeBalanceV2Servlet freezeBalanceV2Servlet;
@Autowired
private UnFreezeBalanceV2Servlet unFreezeBalanceV2Servlet;
@Autowired
private WithdrawExpireUnfreezeServlet withdrawExpireUnfreezeServlet;
@Autowired
private DelegateResourceServlet delegateResourceServlet;
@Autowired
private UnDelegateResourceServlet unDelegateResourceServlet;

@Override
public void init() {
Expand Down Expand Up @@ -299,16 +284,7 @@ public void start() {
context.addServlet(new ServletHolder(getRewardServlet), "/walletsolidity/getReward");
context.addServlet(new ServletHolder(getBurnTrxServlet), "/walletsolidity/getburntrx");
context.addServlet(new ServletHolder(getBlockServlet), "/walletsolidity/getblock");
context.addServlet(new ServletHolder(freezeBalanceV2Servlet),
"/walletsolidity/freezebalancev2");
context.addServlet(new ServletHolder(unFreezeBalanceV2Servlet),
"/walletsolidity/unfreezebalancev2");
context.addServlet(new ServletHolder(withdrawExpireUnfreezeServlet),
"/walletsolidity/withdrawexpireunfreeze");
context.addServlet(new ServletHolder(delegateResourceServlet),
"/walletsolidity/delegateresource");
context.addServlet(new ServletHolder(unDelegateResourceServlet),
"/walletsolidity/undelegateresource");

// http access filter
context.addFilter(new FilterHolder(httpApiAccessFilter), "/walletsolidity/*",
EnumSet.allOf(DispatcherType.class));
Expand Down