Skip to content

Commit

Permalink
Merge pull request #6079 from ghubstan/8-remove-trdstats-service
Browse files Browse the repository at this point in the history
Remove GetTradeStatistics service from grpc.proto [#8]
  • Loading branch information
ripcurlx authored Feb 28, 2022
2 parents d301b0d + a1f059d commit 92b48af
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 97 deletions.
6 changes: 0 additions & 6 deletions core/src/main/java/bisq/core/api/CoreApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import bisq.core.trade.model.TradeModel;
import bisq.core.trade.model.bisq_v1.Trade;
import bisq.core.trade.model.bsq_swap.BsqSwapTrade;
import bisq.core.trade.statistics.TradeStatistics3;
import bisq.core.trade.statistics.TradeStatisticsManager;

import bisq.common.app.Version;
Expand All @@ -47,7 +46,6 @@

import com.google.common.util.concurrent.FutureCallback;

import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.Set;
Expand Down Expand Up @@ -442,10 +440,6 @@ public void removeWalletPassword(String password) {
walletsService.removeWalletPassword(password);
}

public List<TradeStatistics3> getTradeStatistics() {
return new ArrayList<>(tradeStatisticsManager.getObservableTradeStatisticsSet());
}

public int getNumConfirmationsForMostRecentTransaction(String addressString) {
return walletsService.getNumConfirmationsForMostRecentTransaction(addressString);
}
Expand Down

This file was deleted.

2 changes: 0 additions & 2 deletions daemon/src/main/java/bisq/daemon/grpc/GrpcServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public GrpcServer(CoreContext coreContext,
GrpcPriceService priceService,
GrpcShutdownService shutdownService,
GrpcVersionService versionService,
GrpcGetTradeStatisticsService tradeStatisticsService,
GrpcTradesService tradesService,
GrpcWalletsService walletsService) {
this.server = ServerBuilder.forPort(config.apiPort)
Expand All @@ -67,7 +66,6 @@ public GrpcServer(CoreContext coreContext,
.addService(interceptForward(paymentAccountsService, paymentAccountsService.interceptors()))
.addService(interceptForward(priceService, priceService.interceptors()))
.addService(shutdownService)
.addService(interceptForward(tradeStatisticsService, tradeStatisticsService.interceptors()))
.addService(interceptForward(tradesService, tradesService.interceptors()))
.addService(interceptForward(versionService, versionService.interceptors()))
.addService(interceptForward(walletsService, walletsService.interceptors()))
Expand Down
17 changes: 0 additions & 17 deletions proto/src/main/proto/grpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -444,22 +444,6 @@ message MarketPriceReply {
double price = 1; // The most recently available market price.
}

/*
* GetTradeStatistics service is not implemented. It's stub will be remove from the gRPC daemon.
*/
service GetTradeStatistics {
// Not implemented.
rpc GetTradeStatistics (GetTradeStatisticsRequest) returns (GetTradeStatisticsReply) {
}
}

message GetTradeStatisticsRequest {
}

message GetTradeStatisticsReply {
repeated TradeStatistics3 TradeStatistics = 1;
}

service ShutdownServer {
// Shut down a local Bisq daemon.
rpc Stop (StopRequest) returns (StopReply) {
Expand All @@ -469,7 +453,6 @@ service ShutdownServer {
message StopRequest {
}


message StopReply {
}

Expand Down

0 comments on commit 92b48af

Please sign in to comment.