This repository has been archived by the owner on Jun 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 360
fix(mempool): Prevent runTx failures #1425
Merged
Merged
Changes from 11 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
b8ff23d
checktx
itsdevbear d20570d
x
itsdevbear b697a60
config
itsdevbear 838fd0c
added
itsdevbear d50e582
bing bong
itsdevbear 7a2ea33
rc5
itsdevbear e8f31ad
default gas price
itsdevbear a8bc57d
removeyeet
itsdevbear 1cb455c
bing bong
itsdevbear a77f174
bing bong
itsdevbear 69329b1
preparecheckstate
itsdevbear bc65f34
bing bong
itsdevbear 5262965
fix
itsdevbear 9e56706
removing
itsdevbear cf9c1d5
state mgmt pt 1
calbera 1fdca16
state mgmt pt 2
calbera ace17c4
cleanup latest query context
calbera 127a25f
eviction from comet mempool
calbera 0e03eff
bump sdk
itsdevbear 324e24a
deletion from timeInserted map
calbera 6bd959e
fire chain head
calbera 0c0b3d0
comet remote cache
calbera f686f83
minor
calbera dc6302c
default removal to false
calbera c1a9e54
rw lock on block building
calbera 51e7c77
unfuck
itsdevbear 40303ec
test1
itsdevbear d5d59b7
hack7
itsdevbear 49eb151
bet
itsdevbear a76c9b5
bet
itsdevbear 7c420b0
semver
itsdevbear 7c758a1
tag
itsdevbear deff092
experimental
itsdevbear 0292437
bet
itsdevbear af457a4
Merge branch 'main' into 222
itsdevbear c82042a
bet
itsdevbear 92cadd1
merge
itsdevbear a8222c0
remove pebble from geth
itsdevbear 66e3f65
merge
itsdevbear ba7c9dc
bet
itsdevbear f2c30d6
remove unused flag
itsdevbear e0e30d7
bet
itsdevbear 9f08107
lint
itsdevbear bd216d5
bet
itsdevbear 3fc2ac1
focus
itsdevbear e50a5e9
ooga booga
itsdevbear c2870a8
ci
itsdevbear 2c752d7
not gonna break on ci
itsdevbear 80533a6
fix
itsdevbear 1cc85b8
scam
itsdevbear 8c96574
format
itsdevbear 8a521ab
bet
itsdevbear 9b8fc41
attemp to fix
itsdevbear a4363aa
hood
itsdevbear 9d39963
fix unit tests
itsdevbear fce00ab
bet
itsdevbear b75cafa
bet
itsdevbear File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
contracts/bindings/testing/governance/governance_wrapper.abigen.go
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
// | ||
// Copyright (C) 2023, Berachain Foundation. All rights reserved. | ||
// Use of this software is govered by the Business Source License included | ||
// in the LICENSE file of this repository and at www.mariadb.com/bsl11. | ||
// | ||
// ANY USE OF THE LICENSED WORK IN VIOLATION OF THIS LICENSE WILL AUTOMATICALLY | ||
// TERMINATE YOUR RIGHTS UNDER THIS LICENSE FOR THE CURRENT AND ALL OTHER | ||
// VERSIONS OF THE LICENSED WORK. | ||
// | ||
// THIS LICENSE DOES NOT GRANT YOU ANY RIGHT IN ANY TRADEMARK OR LOGO OF | ||
// LICENSOR OR ITS AFFILIATES (PROVIDED THAT YOU MAY USE A TRADEMARK OR LOGO OF | ||
// LICENSOR AS EXPRESSLY REQUIRED BY THIS LICENSE). | ||
// | ||
// TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON | ||
// AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, | ||
// EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF | ||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND | ||
// TITLE. | ||
|
||
package config | ||
|
||
import ( | ||
"github.com/berachain/polaris/eth/node" | ||
"github.com/berachain/polaris/eth/polar" | ||
|
||
cmtcfg "github.com/cometbft/cometbft/config" | ||
|
||
serverconfig "github.com/cosmos/cosmos-sdk/server/config" | ||
) | ||
|
||
// RecommendedCometBFTConfig returns the recommended CometBFT config | ||
// for the application. | ||
func RecommendedCometBFTConfig() *cmtcfg.Config { | ||
cfg := cmtcfg.DefaultConfig() | ||
cfg.Mempool.Size = 30000 | ||
cfg.Mempool.CacheSize = 30000 | ||
cfg.Mempool.Recheck = true | ||
cfg.Mempool.Type = "flood" | ||
|
||
cfg.P2P.MaxNumInboundPeers = 10 | ||
cfg.P2P.MaxNumOutboundPeers = 15 | ||
|
||
cfg.TxIndex.Indexer = "null" | ||
|
||
cfg.Instrumentation.Prometheus = true | ||
return cfg | ||
} | ||
|
||
// RecommendedServerConfig returns the recommended server config. | ||
func RecommendedServerConfig() *serverconfig.Config { | ||
cfg := serverconfig.DefaultConfig() | ||
cfg.MinGasPrices = "0abera" | ||
cfg.API.Enable = true | ||
cfg.Telemetry.Enabled = true | ||
cfg.Telemetry.PrometheusRetentionTime = 180 | ||
cfg.Telemetry.EnableHostnameLabel = true | ||
cfg.Telemetry.GlobalLabels = [][]string{} | ||
cfg.IAVLCacheSize = 20000 | ||
return cfg | ||
} | ||
|
||
// DefaultPolarisConfig returns the default polaris config. | ||
func DefaultPolarisConfig() *Config { | ||
nodeCfg := node.DefaultConfig() | ||
nodeCfg.DataDir = "" | ||
nodeCfg.KeyStoreDir = "" | ||
return &Config{ | ||
Polar: *polar.DefaultConfig(), | ||
Node: *nodeCfg, | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The search results indicate that the
DefaultConfig
function is indeed used in various places within the codebase. Specifically, it is referenced in files such aseth/node/config.go
,eth/polar/config.go
,cosmos/precompile/governance/testutil.go
, and several times withincosmos/config/default.go
.Given this information, it appears that the removal of the
DefaultConfig
function fromcosmos/config/config.go
could potentially impact other parts of the codebase where this function is expected to exist.Analysis chain
The removal of the
DefaultConfig
function is not mentioned in the summary. Please confirm that this function is not used elsewhere in the codebase.Scripts Executed
The following scripts were executed for the analysis:
Script:
Length of output: 445