Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Jan 20, 2024
1 parent eba6502 commit 3bb3286
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cosmos/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ func RecommendedCometBFTConfig() *cmtcfg.Config {
cfg.Mempool.Recheck = true
cfg.Mempool.Type = "flood"

cfg.P2P.MaxNumInboundPeers = 10
cfg.P2P.MaxNumOutboundPeers = 15
cfg.P2P.MaxNumInboundPeers = 40
cfg.P2P.MaxNumOutboundPeers = 20

cfg.TxIndex.Indexer = "null"

cfg.Consensus.TimeoutPropose = 3 * time.Second
cfg.Consensus.TimeoutPropose = 3 * time.Second //nolint:gomnd // default.
cfg.Consensus.TimeoutPrevote = 1 * time.Second
cfg.Consensus.TimeoutPrecommit = 1 * time.Second

Expand Down
2 changes: 1 addition & 1 deletion cosmos/runtime/txpool/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

package txpool

// Mempool metrics
// Mempool metrics.
const (
MetricKeyCometPrefix = "polaris_cometbft_"

Expand Down
2 changes: 1 addition & 1 deletion eth/polar/api_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (b *backend) HeaderByHash(_ context.Context, hash common.Hash) (*ethtypes.H

// BlockByNumber returns the block with the given `number`.
func (b *backend) BlockByNumber(
ctx context.Context,
_ context.Context,
number rpc.BlockNumber,
) (*ethtypes.Block, error) {
// Pending block is only known by the miner
Expand Down

0 comments on commit 3bb3286

Please sign in to comment.