Skip to content

Commit 959935e

Browse files
committed
Merge remote-tracking branch 'origin/sanaz/blocksync-commit-check' into sanaz/blocksync-commit-check
2 parents ae76d2c + 719d3dd commit 959935e

228 files changed

Lines changed: 14039 additions & 2538 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/docker_publish.yml‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,3 @@ jobs:
6767
ghcr.io/sei-protocol/sei:${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}
6868
ghcr.io/sei-protocol/sei:${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}.${{ env.PATCH_VERSION }}
6969
ghcr.io/sei-protocol/sei:v${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}.${{ env.PATCH_VERSION }}
70-
-
71-
name: Make Image Public
72-
env:
73-
GH_TOKEN: ${{ secrets.DOCKER_IMAGES }}
74-
run: |
75-
gh api -X PATCH "https://api.github.com/orgs/sei-protocol/packages/container/sei" --field visibility=public
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Seidroid Shadow, the next generation of seidroid review, running beside
2+
# seidroid.yml: it reviews the same pull requests and reports only on its own
3+
# "Seidroid Review" check, so the two can be compared before either is retired.
4+
name: Seidroid Shadow
5+
6+
on:
7+
pull_request:
8+
types: [opened, reopened, ready_for_review, synchronize]
9+
issue_comment:
10+
types: [created]
11+
pull_request_review_comment:
12+
types: [created]
13+
pull_request_review:
14+
types: [submitted]
15+
16+
permissions: {}
17+
18+
jobs:
19+
seidroid:
20+
# A pull_request run from a fork gets no OIDC token, which the review needs.
21+
if: >-
22+
github.event_name != 'pull_request' ||
23+
github.event.pull_request.head.repo.full_name == github.repository
24+
uses: sei-protocol/seidroid/.github/workflows/review.yml@42d2eedb177c8fe4bfd8ba3c4f53dc2e2f805d66 # v0.3.1
25+
permissions:
26+
contents: read
27+
pull-requests: read
28+
id-token: write
29+
with:
30+
# Runs the full seidroid app review (scouts, main review, sandboxed shell) on the same
31+
# triggers as seidroid.yml, but publishes only its Seidroid Review check: no
32+
# review, inline comments, approval, reactions or replies. v1 keeps the
33+
# conversation, and the service pairs this check with v1's on each commit.
34+
shadow: true
35+
allowed-bots: seidroid[bot]

‎CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,11 @@ sei-chain
448448

449449
## v6.7
450450
sei-chain
451+
* [#4875](https://github.com/sei-protocol/sei-chain/pull/4875) Backport `release/v6.7`: fix(evm): discard cached traces written under another format version
452+
* [#4871](https://github.com/sei-protocol/sei-chain/pull/4871) Backport `release/v6.7`: Return an empty array from eth_accounts on a keyless node
453+
* [#4866](https://github.com/sei-protocol/sei-chain/pull/4866) Trace txs that fail before execution as failed txs on release/v6.7 (PLT-1604)
454+
* [#4816](https://github.com/sei-protocol/sei-chain/pull/4816) Bump version to v6.7.4 in prep for patch release
455+
* [#4814](https://github.com/sei-protocol/sei-chain/pull/4814) Backport `release/v6.7`: Update v6.7 changelog from release/v6.7
451456
* [#4810](https://github.com/sei-protocol/sei-chain/pull/4810) Backport `release/v6.7`: Load the full validator set
452457
* [#4719](https://github.com/sei-protocol/sei-chain/pull/4719) Backport `release/v6.7`: Update v6.7 change log in prep to cut v6.7.3 patch
453458
* [#4716](https://github.com/sei-protocol/sei-chain/pull/4716) Bump version to v6.7.3 in prep for patch release

‎Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ run-rpc-node: build-rpc-node
332332
--env GIGA_STORAGE=${GIGA_STORAGE} \
333333
--env GIGA_FLATKV_ONLY=${GIGA_FLATKV_ONLY} \
334334
--env AUTOBAHN=${AUTOBAHN} \
335+
--env EVM_ALLOC \
335336
--env EVM_GOVERNANCE_VOTING_PERIOD=${EVM_GOVERNANCE_VOTING_PERIOD} \
336337
--env CLUSTER_SIZE=${CLUSTER_SIZE} \
337338
--env RECEIPT_BACKEND=${RECEIPT_BACKEND} \
@@ -356,6 +357,7 @@ define RUN_RPC_NODE_SKIPBUILD
356357
--env GIGA_STORAGE=${GIGA_STORAGE} \
357358
--env GIGA_FLATKV_ONLY=${GIGA_FLATKV_ONLY} \
358359
--env AUTOBAHN=${AUTOBAHN} \
360+
--env EVM_ALLOC \
359361
--env EVM_GOVERNANCE_VOTING_PERIOD=${EVM_GOVERNANCE_VOTING_PERIOD} \
360362
--env CLUSTER_SIZE=${CLUSTER_SIZE} \
361363
--env RECEIPT_BACKEND=${RECEIPT_BACKEND} \

‎app/seidb.go‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77

88
gigaconfig "github.com/sei-protocol/sei-chain/giga/executor/config"
99
"github.com/sei-protocol/sei-chain/sei-cosmos/baseapp"
10+
"github.com/sei-protocol/sei-chain/sei-cosmos/server"
1011
servertypes "github.com/sei-protocol/sei-chain/sei-cosmos/server/types"
1112
"github.com/sei-protocol/sei-chain/sei-cosmos/storev2/rootmulti"
1213
"github.com/sei-protocol/sei-chain/sei-cosmos/version"
@@ -136,6 +137,10 @@ func parseSCConfigs(appOpts servertypes.AppOptions) config.StateCommitConfig {
136137
if v := appOpts.Get(FlagSCFlatKVReadWriteMetrics); v != nil {
137138
scConfig.FlatKVConfig.EnableReadWriteMetrics = cast.ToBool(v)
138139
}
140+
if cast.ToBool(appOpts.Get(server.FlagIngress)) {
141+
scConfig.MemIAVLConfig.SnapshotKeepLatestOnly = true
142+
scConfig.FlatKVConfig.ApplyLowFootprintProfile()
143+
}
139144

140145
// sc-write-mode-enable-auto (default true) decides whether the node may run
141146
// in auto. An ABSENT key keeps the default (true): nodes provisioned by

‎app/seidb_test.go‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,23 @@ func TestParseSCConfigs_FlatKVReadWriteMetrics(t *testing.T) {
139139
assert.True(t, scConfig.FlatKVConfig.EnableReadWriteMetrics)
140140
}
141141

142+
func TestParseSCConfigs_Ingress(t *testing.T) {
143+
scConfig := parseSCConfigs(mapAppOpts{FlagSCEnable: true})
144+
assert.Equal(t, config.DefaultStateCommitConfig().FlatKVConfig, scConfig.FlatKVConfig)
145+
assert.False(t, scConfig.MemIAVLConfig.SnapshotKeepLatestOnly)
146+
147+
scConfig = parseSCConfigs(mapAppOpts{
148+
FlagSCEnable: true,
149+
server.FlagIngress: "true",
150+
})
151+
want := config.DefaultStateCommitConfig().FlatKVConfig
152+
want.ApplyLowFootprintProfile()
153+
assert.Equal(t, want, scConfig.FlatKVConfig)
154+
assert.True(t, scConfig.MemIAVLConfig.SnapshotKeepLatestOnly)
155+
// The node keeps following the chain's migration.
156+
assert.Equal(t, sctypes.Auto, scConfig.WriteMode)
157+
}
158+
142159
func TestParseSCConfigs_DoesNotAlignFlatKV(t *testing.T) {
143160
// parseSCConfigs is a raw parse: memIAVL takes the flag values while FlatKV
144161
// keeps its own in-code defaults. The FlatKV<-memIAVL alignment happens later

‎cmd/autobahn-e2e/aws_remote.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ func seiLoadAWSConfig(privateIPs []string) (string, error) {
236236
endpoints[i] = fmt.Sprintf("http://%s:%d", ip, awsEVMPort)
237237
}
238238
cfg := map[string]any{
239-
"chainId": 713715,
239+
"chainId": 713700,
240240
"seiChainID": "autobahn-evmonly",
241241
"endpoints": endpoints,
242242
"accounts": map[string]any{

‎contracts/test/lib.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,10 +687,10 @@ function _wrapSignerWithNonceRetry(signer) {
687687
return signer
688688
}
689689

690-
// EVM chain ID of the Autobahn EVM-only executor (AutobahnEVMOnlyChainID in
691-
// sei-tendermint/config/autobahn.go). That chain has no Cosmos accounts, so an
690+
// EVM chain ID docker/localnode gives the Autobahn EVM-only executor (the
691+
// --evm-chain-id of gen-autobahn-config). That chain has no Cosmos accounts, so an
692692
// EVM address has no Sei address to look up.
693-
const EVM_ONLY_CHAIN_ID = 713715
693+
const EVM_ONLY_CHAIN_ID = 713700
694694

695695
// isEvmOnlyChain reports whether the network under test is the Autobahn
696696
// EVM-only chain.

‎docker/docker-compose.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ services:
1919
- GIGA_OCC
2020
- RECEIPT_BACKEND
2121
- AUTOBAHN
22+
- EVM_ALLOC
2223
- EVM_GOVERNANCE_VOTING_PERIOD
2324
- GIGA_STORAGE
2425
- GIGA_MIGRATE_FROM_MEMIAVL
@@ -56,6 +57,7 @@ services:
5657
- GIGA_OCC
5758
- RECEIPT_BACKEND
5859
- AUTOBAHN
60+
- EVM_ALLOC
5961
- EVM_GOVERNANCE_VOTING_PERIOD
6062
- GIGA_STORAGE
6163
- GIGA_MIGRATE_FROM_MEMIAVL
@@ -90,6 +92,7 @@ services:
9092
- GIGA_OCC
9193
- RECEIPT_BACKEND
9294
- AUTOBAHN
95+
- EVM_ALLOC
9396
- EVM_GOVERNANCE_VOTING_PERIOD
9497
- GIGA_STORAGE
9598
- GIGA_MIGRATE_FROM_MEMIAVL
@@ -127,6 +130,7 @@ services:
127130
- GIGA_OCC
128131
- RECEIPT_BACKEND
129132
- AUTOBAHN
133+
- EVM_ALLOC
130134
- EVM_GOVERNANCE_VOTING_PERIOD
131135
- GIGA_STORAGE
132136
- GIGA_MIGRATE_FROM_MEMIAVL

‎docker/localnode/scripts/step4_config_override.sh‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,13 @@ if [ "$AUTOBAHN" = "true" ]; then
190190
if [ -n "$EVM_GOVERNANCE_VOTING_PERIOD" ]; then
191191
GOVERNANCE_FLAGS="--evm-governance-voting-period $EVM_GOVERNANCE_VOTING_PERIOD"
192192
fi
193-
seid tendermint gen-autobahn-config $NODE_DIRS $GOVERNANCE_FLAGS --output "$AUTOBAHN_CONFIG"
193+
# contracts/test/lib.js and integration_test/autobahn sign for this EVM chain ID.
194+
seid tendermint gen-autobahn-config $NODE_DIRS $GOVERNANCE_FLAGS --evm-chain-id 713700 --output "$AUTOBAHN_CONFIG"
195+
if [ -n "$EVM_ALLOC" ]; then
196+
jq --argjson alloc "$EVM_ALLOC" '.evm_alloc = $alloc' "$AUTOBAHN_CONFIG" > "$AUTOBAHN_CONFIG.tmp" ||
197+
{ echo "ERROR: EVM_ALLOC is not valid JSON" >&2; exit 1; }
198+
mv "$AUTOBAHN_CONFIG.tmp" "$AUTOBAHN_CONFIG"
199+
fi
194200
# Autobahn serves the EVM JSON-RPC only: clear the Tendermint RPC and Cosmos
195201
# query surfaces it does not serve.
196202
sed -i '/^\[rpc\]/,/^\[/ s|^laddr = .*|laddr = ""|' ~/.sei/config/config.toml

0 commit comments

Comments
 (0)