[bisq-network/bisq] Define gRPC api call rate constraints (#5103)

Stan notifications at github.com
Fri Jan 22 17:52:40 CET 2021


The general rule is limit calls that change p2p data to 1/minute, others to 1/second.  An exception is made to set/remove wallet password methods (1/5s), due to the latency of writing wallet changes to disk.

This change may affect api testing in the future.  If that happens, further changes to the call rate metering interceptor may be made to loosen the constraints when running in regtest/dev mode.

You can view, comment on, or merge this pull request online at:

  https://github.com/bisq-network/bisq/pull/5103

-- Commit Summary --

  * Define gRPC api call rate constraints

-- File Changes --

    M daemon/src/main/java/bisq/daemon/grpc/GrpcDisputeAgentsService.java (30)
    M daemon/src/main/java/bisq/daemon/grpc/GrpcGetTradeStatisticsService.java (27)
    M daemon/src/main/java/bisq/daemon/grpc/GrpcHelpService.java (28)
    M daemon/src/main/java/bisq/daemon/grpc/GrpcOffersService.java (32)
    M daemon/src/main/java/bisq/daemon/grpc/GrpcPaymentAccountsService.java (31)
    M daemon/src/main/java/bisq/daemon/grpc/GrpcPriceService.java (28)
    M daemon/src/main/java/bisq/daemon/grpc/GrpcServer.java (16)
    M daemon/src/main/java/bisq/daemon/grpc/GrpcTradesService.java (33)
    M daemon/src/main/java/bisq/daemon/grpc/GrpcVersionService.java (5)
    M daemon/src/main/java/bisq/daemon/grpc/GrpcWalletsService.java (44)
    M daemon/src/main/java/bisq/daemon/grpc/interceptor/GrpcServiceRateMeteringConfig.java (1)

-- Patch Links --

https://github.com/bisq-network/bisq/pull/5103.patch
https://github.com/bisq-network/bisq/pull/5103.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/5103
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20210122/e6eda3de/attachment-0001.htm>


More information about the bisq-github mailing list