-
Notifications
You must be signed in to change notification settings - Fork 273
Problem: v1.0.x changes are not merged into main #816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
b0099d1
Problem: eth_sendTransaction is not tested
c34a372
Problem: json-rpc apis fail for legacy blocks after upgrade (#696)
35abeee
Problem: file changes detection in workflow is problematic (backport …
10bb672
Problem: after v0.9.0 upgrade eth_call failed on old blocks (backport…
7981ed1
Problem: state streamers are not integrated (backport #702) (#721)
d6457e8
Problem: new iavl indexes migration is slow and not optional (#714) (…
29e51e7
Problem: recent dependencies are not used (backport #729) (#730)
36bb343
Problem: chain state is inconsistent if upgrade migration is interrup…
3ddaa0b
Problem: recent fixes in dependencies are not included (#752)
2d5a72d
Problem: binary version is not bump to v1.0.0 (#753)
3921c10
Problem: recent fixes in dependencies are not used (#757)
9998985
Problem: gas used is not backward compatible (#760)
f394c8c
Problem: evm execute result is non-deterministic with concurrent grpc…
90c2c3e
Problem: extra_eips is not cleared on production network (#762)
57d1c53
Problem: no error log when iavl set failure trigger app hash mismatch…
df0452a
Problem: different result from eth_getProof comparing with Ethereum (…
eba04a0
Problem: nix exceeds github rate limit occationally in CI (backport #…
a6f5bbc
Problem: fixes in ibc-go v5.1 are not included (#765)
4d14c8f
Problem: london hardfork number failed validation (#771)
79254b6
Problem: formal v0.46.5 cosmos-sdk release is not used (#772)
68f98e4
Problem: final v1.0.0 is not released (#774)
db6ed7a
Problem: manual prune cmd is not included (backport #781) (#782)
ca4b871
Problem: cosmos-sdk `v0.46.7` is not used (#790)
b3da22d
Problem: discontinued ibc-go version (#802)
7ef5b04
Problem: production rocksdb configuration is not optimal (#813)
8bd3be9
Problem: prometheus metrics is lost (#814)
63b2f37
release v1.0.3
d61449f
Merge branch 'release/v1.0.x'
0ffc3cd
Update CHANGELOG.md
7e2cf47
fix changelog
cc26687
fix merge
d5022ed
Update integration_tests/test_upgrade.py
c6a221c
fix test
mmsqe 2d4d98a
Update integration_tests/configs/default.jsonnet
a2ffc3f
Merge branch 'main' into main
tomtau 67a024b
fix test_multiple_attestation_processing
mmsqe 26ed55d
fix changelog
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
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,15 @@ | ||
| //go:build !rocksdb | ||
| // +build !rocksdb | ||
|
|
||
| package cmd | ||
|
|
||
| import ( | ||
| "path/filepath" | ||
|
|
||
| dbm "github.com/tendermint/tm-db" | ||
| ) | ||
|
|
||
| func openDB(rootDir string, backendType dbm.BackendType) (dbm.DB, error) { | ||
| dataDir := filepath.Join(rootDir, "data") | ||
| return dbm.NewDB("application", backendType, dataDir) | ||
| } |
This file contains hidden or 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,74 @@ | ||
| //go:build rocksdb | ||
| // +build rocksdb | ||
|
|
||
| package cmd | ||
|
|
||
| import ( | ||
| "path/filepath" | ||
| "runtime" | ||
|
|
||
| "github.com/linxGnu/grocksdb" | ||
| dbm "github.com/tendermint/tm-db" | ||
| ) | ||
|
|
||
| func openDB(rootDir string, backendType dbm.BackendType) (dbm.DB, error) { | ||
| dataDir := filepath.Join(rootDir, "data") | ||
| if backendType == dbm.RocksDBBackend { | ||
| // customize rocksdb options | ||
| db, err := grocksdb.OpenDb(newRocksdbOptions(), filepath.Join(dataDir, "application.db")) | ||
| if err != nil { | ||
| return nil, err | ||
| } | ||
| ro := grocksdb.NewDefaultReadOptions() | ||
| wo := grocksdb.NewDefaultWriteOptions() | ||
| woSync := grocksdb.NewDefaultWriteOptions() | ||
| woSync.SetSync(true) | ||
| return dbm.NewRocksDBWithRawDB(db, ro, wo, woSync), nil | ||
| } else { | ||
| return dbm.NewDB("application", backendType, dataDir) | ||
| } | ||
| } | ||
|
|
||
| func newRocksdbOptions() *grocksdb.Options { | ||
| opts := grocksdb.NewDefaultOptions() | ||
| opts.SetCreateIfMissing(true) | ||
| opts.IncreaseParallelism(runtime.NumCPU()) | ||
| opts.OptimizeLevelStyleCompaction(512 * 1024 * 1024) | ||
| opts.SetTargetFileSizeMultiplier(2) | ||
|
|
||
| // block based table options | ||
| bbto := grocksdb.NewDefaultBlockBasedTableOptions() | ||
|
|
||
| // 1G block cache | ||
| bbto.SetBlockCache(grocksdb.NewLRUCache(1 << 30)) | ||
|
|
||
| // larger block means smaller index and better compression ratio. | ||
| bbto.SetBlockSize(32 * 1024) | ||
|
|
||
| // http://rocksdb.org/blog/2021/12/29/ribbon-filter.html | ||
| bbto.SetFilterPolicy(grocksdb.NewRibbonHybridFilterPolicy(9.9, 1)) | ||
|
|
||
| // partition index | ||
| // http://rocksdb.org/blog/2017/05/12/partitioned-index-filter.html | ||
| bbto.SetIndexType(grocksdb.KTwoLevelIndexSearchIndexType) | ||
| bbto.SetPartitionFilters(true) | ||
|
|
||
| // hash index is better for iavl tree which mostly do point lookup. | ||
| bbto.SetDataBlockIndexType(grocksdb.KDataBlockIndexTypeBinarySearchAndHash) | ||
|
|
||
| opts.SetBlockBasedTableFactory(bbto) | ||
|
|
||
| // in iavl tree, we almost always query existing keys | ||
| opts.SetOptimizeFiltersForHits(true) | ||
|
|
||
| // heavier compression option at bottommost level, | ||
| // 110k dict bytes is default in zstd library, | ||
| // train bytes is recommended to be set at 100x dict bytes. | ||
| opts.SetBottommostCompression(grocksdb.ZSTDCompression) | ||
| compressOpts := grocksdb.NewDefaultCompressionOptions() | ||
| compressOpts.MaxDictBytes = 110 * 1024 | ||
| compressOpts.Level = 12 | ||
| opts.SetBottommostCompressionOptions(compressOpts, true) | ||
| opts.SetBottommostCompressionOptionsZstdMaxTrainBytes(compressOpts.MaxDictBytes*100, true) | ||
| return opts | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.