Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions app/params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ const (
Bech32PrefixAccAddr = "sei"
)

var UnsafeBypassCommitTimeoutOverride = true
// UnsafeBypassCommitTimeoutOverride commits block as soon as we reach consensus instead of waiting
// for timeout, this may cause validators to not get their votes in time
var UnsafeBypassCommitTimeoutOverride = false

var (
// Bech32PrefixAccPub defines the Bech32 prefix of an account's public key.
Expand Down Expand Up @@ -91,13 +93,11 @@ func SetTendermintConfigs(config *tmcfg.Config) {
config.Mempool.MaxTxBytes = 2048576
// Consensus Configs
config.Consensus.GossipTransactionKeyOnly = true
config.Consensus.UnsafeProposeTimeoutOverride = 1 * time.Second
config.Consensus.UnsafeProposeTimeoutOverride = 5 * time.Second
config.Consensus.UnsafeProposeTimeoutDeltaOverride = 500 * time.Millisecond

config.Consensus.UnsafeVoteTimeoutOverride = 50 * time.Millisecond
config.Consensus.UnsafeVoteTimeoutDeltaOverride = 500 * time.Millisecond
config.Consensus.UnsafeCommitTimeoutOverride = 50 * time.Millisecond

config.Consensus.UnsafeBypassCommitTimeoutOverride = &UnsafeBypassCommitTimeoutOverride
// Metrics
config.Instrumentation.Prometheus = true
Expand Down
4 changes: 2 additions & 2 deletions x/oracle/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func WeightedOperations(
}

// SimulateMsgAggregateExchangeRateVote generates a MsgAggregateExchangeRateVote with random values.
//nolint: funlen
// nolint: funlen
func SimulateMsgAggregateExchangeRateVote(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation {
return func(
r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string,
Expand Down Expand Up @@ -122,7 +122,7 @@ func SimulateMsgAggregateExchangeRateVote(ak types.AccountKeeper, bk types.BankK
}

// SimulateMsgDelegateFeedConsent generates a MsgDelegateFeedConsent with random values.
//nolint: funlen
// nolint: funlen
func SimulateMsgDelegateFeedConsent(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation {
return func(
r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string,
Expand Down