mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-13 05:11:21 +00:00
limit number of /subscribe clients and queries per client
Add the following config variables (under [rpc] section): * max_subscription_clients * max_subscriptions_per_client * timeout_broadcast_tx_commit Fixes #2826
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
package core
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/tendermint/tendermint/consensus"
|
||||
"github.com/tendermint/tendermint/crypto"
|
||||
dbm "github.com/tendermint/tendermint/libs/db"
|
||||
@ -71,6 +73,11 @@ var (
|
||||
mempool *mempl.Mempool
|
||||
|
||||
logger log.Logger
|
||||
|
||||
// XXX: godoc comment
|
||||
MaxSubscriptionClients int
|
||||
MaxSubscriptionsPerClient int
|
||||
TimeoutBroadcastTxCommit time.Duration
|
||||
)
|
||||
|
||||
func SetStateDB(db dbm.DB) {
|
||||
|
Reference in New Issue
Block a user