Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
269 commits
Select commit Hold shift + click to select a range
1e09361
Enrich tracing info
codchen Aug 27, 2022
f4bcf3b
Merge pull request #10 from sei-protocol/tony-chen-detailed-trace
codchen Aug 27, 2022
758d2a0
Enrich tracing
codchen Aug 27, 2022
cda57b3
Merge pull request #11 from sei-protocol/tony-chen-tracing-improvement
codchen Aug 27, 2022
5607f72
Add flags to indicate txs that have been checked
codchen Sep 8, 2022
8a1b971
Merge pull request #13 from sei-protocol/tony-chen-skip-sigverify-for…
codchen Sep 8, 2022
7e8332b
Add Tx notification threshold
codchen Sep 8, 2022
c418804
Merge pull request #14 from sei-protocol/tony-chen-notify-if-full
codchen Sep 8, 2022
85df732
Update tx threshold impl
codchen Sep 8, 2022
b06e9fa
Merge pull request #15 from sei-protocol/tony-chen-threshold-impl
codchen Sep 8, 2022
8c3685f
Gossip TxKey in Proposal during Consensus (#16)
philipsu522 Sep 27, 2022
be31195
pr template
philipsu522 Oct 4, 2022
baab052
Check for missing tx before block creation (#19)
philipsu522 Oct 5, 2022
f6f4c73
Fix unit tests (#20)
philipsu522 Oct 11, 2022
2153cb3
Add forked changelog (#21)
philipsu522 Oct 25, 2022
b658966
Add --hard rollback support (#24)
BrandonWeng Nov 17, 2022
afdf028
Vote nil if proposal block is nil (#25)
BrandonWeng Nov 18, 2022
138fdf9
CheckTx for txs from peer proposal (#26)
codchen Dec 9, 2022
1de0bf4
Error if there's dupe connections (#28)
BrandonWeng Dec 14, 2022
77e7644
log outuptu (#29)
BrandonWeng Jan 5, 2023
f459c40
Update default configs (#30)
BrandonWeng Jan 5, 2023
31322e3
Set default for TM params (#31)
BrandonWeng Jan 9, 2023
4c82d69
[0 Gas] add counter for CheckTx failures (#32)
codchen Jan 10, 2023
1927dc9
Add node ID filtering for peers blacklisted due to CheckTx failures (…
codchen Jan 10, 2023
e52126b
[0 Gas] evict peer connection if they send too many transactions fail…
codchen Jan 12, 2023
1ae59b4
move around state checks (#35)
BrandonWeng Jan 16, 2023
eb2a490
[client] Fix https / wss conversion (#37)
udpatil Jan 18, 2023
ba48120
cherrypick unsafe-reset-all (#36)
codchen Jan 19, 2023
8bcbe1f
Cherrypick unconditional peers (#38)
codchen Jan 19, 2023
c46e615
[Bug Fix] Revert PR "Don't allow duplicates for light client provider…
yzang2019 Jan 20, 2023
6e48e7a
[State Sync] Add backfill configurations for state sync (#41)
yzang2019 Jan 23, 2023
9a5d583
Go mod tidy (#42)
BrandonWeng Jan 23, 2023
919131f
Not InitChain if there is statesync (#43)
codchen Jan 26, 2023
5bba38f
Keep LRU cache of recent peers and retry if we run out (#45)
philipsu522 Jan 27, 2023
1c59d1d
Make checktx failure info (#46)
philipsu522 Jan 27, 2023
3ddff76
Fix tendermint state hard rollback logic (#44)
codchen Jan 30, 2023
1eaacda
Bug Fix: recheck should not cause all future transactions to halt (#48)
yzang2019 Jan 30, 2023
93980dd
Revert "Keep LRU cache of recent peers and retry if we run out (#45)"…
philipsu522 Feb 1, 2023
44a6743
Cherrypick p2p priority queue optimizations (#50)
codchen Feb 1, 2023
3d200aa
Revert "Keep LRU cache of recent peers and retry if we run out (#45)"…
philipsu522 Feb 1, 2023
bd76c6c
Add p2p error logs (#53)
codchen Feb 1, 2023
8173ec7
Improve recheckTx logs (#54)
BrandonWeng Feb 1, 2023
ff4e92a
Do not re-run checkTx when proposal block is received (#56)
philipsu522 Feb 2, 2023
4fba66d
Cherrypick https://github.com/tendermint/tendermint/pull/8759 (#57)
codchen Feb 2, 2023
fe30d3b
[config] set override unsafeTimeoutOverride to false by default (#59)
BrandonWeng Feb 3, 2023
7dd69f8
Comment out unsafe-commit-timeout-override (#61)
BrandonWeng Feb 3, 2023
5494eea
Comment out unsafe-commit-timeout-override (#62)
BrandonWeng Feb 3, 2023
b0bef77
More p2p logs (#60)
codchen Feb 4, 2023
684290e
Self kill process if there are no available peers (#58)
philipsu522 Feb 4, 2023
1b74a91
Default p2p with simple priority (#63)
BrandonWeng Feb 7, 2023
4910b28
Ensure that defaultDoPrevote always signs a vote before returning (#64)
philipsu522 Feb 7, 2023
ad9d9e1
fix unit test (#65)
philipsu522 Feb 7, 2023
dd50349
Make sure TCP connection is absent before dialing (#66)
codchen Feb 9, 2023
804b53f
Add heartbeater to consensus to prevent node hang (#68)
philipsu522 Feb 16, 2023
4f7a52d
Revert "Make sure TCP connection is absent before dialing (#66)" (#71)
philipsu522 Feb 22, 2023
fe53164
Enrich net-info endpoint (#72)
BrandonWeng Feb 22, 2023
759f5fc
Make some checktx logs debug (#73)
philipsu522 Feb 27, 2023
66e6bac
Delete peer on max retry (#74)
BrandonWeng Mar 2, 2023
a75699f
backoff on retries when no available peers (#75)
BrandonWeng Mar 5, 2023
1df21a2
Reduce logs and turn of recheck (#76)
philipsu522 Mar 6, 2023
fbb69a1
Turn off val not in active set checktx logs (#77)
BrandonWeng Mar 6, 2023
6371a15
Less logs part 2 (#78)
philipsu522 Mar 6, 2023
be2c62d
Increase sync timeout to 3min (#79)
yzang2019 Mar 9, 2023
5a62cf5
Fix race condition around consensus state (#81)
yzang2019 Mar 10, 2023
3c0c282
Restart node if no statesync peer is available (#82)
BrandonWeng Mar 13, 2023
970e8ba
Print the whole validator address (#84)
BrandonWeng Mar 15, 2023
fdb9524
remove redundant span close (#89)
BrandonWeng Mar 15, 2023
55a16a4
Remove unused code (#88)
BrandonWeng Mar 15, 2023
85882ad
[Oak Audit] Do not try completing proposal if setProposal is nil & ot…
philipsu522 Mar 15, 2023
8bfc73c
TxNotifyThreshold should be of type unsigned integer (#90)
BrandonWeng Mar 15, 2023
cdf45f4
revert breaking changes (#91)
codchen Mar 16, 2023
02a87ef
bump (#94)
philipsu522 Mar 17, 2023
71075d7
Add SafeRoundState (#86)
codchen Mar 20, 2023
b8d1c3a
Patch forging empty merkle tree attack vector (#95)
codchen Mar 21, 2023
2a51b0b
Default max gas param (#99)
BrandonWeng Mar 24, 2023
21fc010
Minor log tunings to make debugging state sync p2p issue easier (#100)
yzang2019 Mar 25, 2023
864a3c0
Compatibility change for IBC (#98)
codchen Mar 27, 2023
3ff7b20
Fix pubsub json encoding for IBC (#101)
codchen Mar 28, 2023
166abb5
Bump default max gas to 6 million (#102)
Mar 29, 2023
8ea76cc
Fix JSON tag (#103)
codchen Mar 30, 2023
c47d26b
Add metrics and visibility over high block time caused by consensus (…
yzang2019 Mar 30, 2023
77ddf33
Update Encoding for Genesis file and node key (#109)
Kbhat1 Mar 31, 2023
9c0f046
Bump max gas to 100m (#108)
BrandonWeng Apr 3, 2023
1af8c16
Add more granular buckets for block interval (#110)
BrandonWeng Apr 3, 2023
c69d038
Add unused prival pubKey back to node info (#111)
Apr 6, 2023
fba84cd
Add metrics label for missing val power (#113)
BrandonWeng Apr 7, 2023
994942d
Add more gauges in the consensus flow (#114)
codchen Apr 11, 2023
d47354c
Fix SeedNode code path (#116)
BrandonWeng Apr 11, 2023
a7f1de4
[Bug Fix] Fix state sync stuck in infinite loop discovering the next …
yzang2019 Apr 14, 2023
fed7f7f
Remove sigs verified (#124)
Kbhat1 Apr 18, 2023
7c46580
Add option to auto restart node if behind (#120)
BrandonWeng Apr 19, 2023
e77a18d
fix cast for txmp size (#123)
philipsu522 Apr 20, 2023
95f4f6a
Revert CheckTx RPCResponse (#125)
Apr 21, 2023
da797de
Add DBSync Module (#118)
codchen Apr 24, 2023
3cf843e
Fix seed node instrumentation (#126)
BrandonWeng Apr 24, 2023
5ccf94a
Adjust persistent peer scores as needed as well (#127)
yzang2019 Apr 24, 2023
e916665
[DBSync] allow empty files to be synced (#128)
codchen Apr 25, 2023
06fa760
Do not run DBSync if there is already a readable app version (#130)
codchen Apr 26, 2023
d351d54
Add helper to try unmarshaling eventdata (#131)
udpatil May 1, 2023
be8f855
change directory permission (#132)
codchen May 1, 2023
ec59b64
Add check for nil map (#134)
philipsu522 May 4, 2023
d2cb051
Auto switch to blocksync should only start in consensus mode (#135)
BrandonWeng May 10, 2023
1374af8
Revert block Evidence data type to nested Evidence (#136)
May 15, 2023
1363bf1
Revert "Revert block Evidence data type to nested Evidence (#136)" (#…
philipsu522 May 17, 2023
92583dc
Add new endpoint to expose lag (#137)
yzang2019 May 22, 2023
2805d93
Don't need to panic for self peer (#139)
BrandonWeng May 24, 2023
54e74f5
Serialize CheckTx error log (#140)
May 30, 2023
0f8c298
Remove duplicate grand.init (#142)
philipsu522 May 31, 2023
2c209fd
stop timer before reset (#143)
codchen Jun 2, 2023
4679a57
Cancel bprequestor once blocksync finishes (#141)
codchen Jun 5, 2023
45a8c3b
Make light block verify request timeout configurable (#145)
codchen Jun 5, 2023
99245f4
Code Coverage Reports (#146)
BrandonWeng Jun 12, 2023
f425bdc
Fix codecov (#147)
BrandonWeng Jun 12, 2023
ce85dfb
Add Sleep to avoid retrying too quickly (#148)
BrandonWeng Jun 13, 2023
c0875a3
[Cleanup] Removed unused Tx Record Type (#150)
BrandonWeng Jun 21, 2023
535b8dc
Fix condition check for tx key dissemination (#149)
philipsu522 Jun 22, 2023
052cb67
Add backfill-blocks and backfill-duration configuration to config.tom…
yzang2019 Jul 5, 2023
6c4f54d
Add unit test check job (#152)
BrandonWeng Jul 13, 2023
8585477
Fix tx key dissemination metric to only emit on complete proposal (#153)
philipsu522 Jul 17, 2023
2cca987
Fix empty prevote latency metrics (#154)
codchen Aug 18, 2023
881b9c1
[statesync] Fix findNewPrimary never timing out upon poor witnesses (…
udpatil Sep 22, 2023
6a0a164
State sync fixes: Remove Bad Witnesses and Don't Wait on All Witnesse…
Kbhat1 Oct 3, 2023
c867399
Add metrics for peermanager scores (#158)
philipsu522 Oct 4, 2023
9e526bc
Report metrics on ranked (#160)
philipsu522 Oct 4, 2023
841fb45
Reduce noisy tendermint logs (#163)
yzang2019 Oct 12, 2023
a40b8ce
Add regex support to query syntax (#164)
codchen Oct 30, 2023
bdc96a7
Use peermanager scores for blocksync peers and don't error out on blo…
philipsu522 Oct 31, 2023
85beb83
Add event data to result event (#165)
jewei1997 Nov 14, 2023
a346731
Perf: Increase buffer size for pubsub server to boost performance (#167)
yzang2019 Nov 22, 2023
ca20c07
[P2P] Optimize block pool requester retry and peer pick up logic (#170)
yzang2019 Dec 20, 2023
16cc829
Revert "Add event data to result event (#165)" (#176)
jewei1997 Dec 27, 2023
25f2424
Fix block sync auto restart not working as expected (#175)
yzang2019 Dec 28, 2023
1a6b41d
Fix edge case for blocksync (#178)
yzang2019 Dec 28, 2023
848fb48
Standardize lag status response format (#187)
yzang2019 Jan 12, 2024
a066c68
Broadcast result should also pass log (#201)
yzang2019 Feb 7, 2024
7618f63
Add min gas price to abci info (#203)
philipsu522 Feb 21, 2024
bc598ac
reformat logs to use simple concatenation with separators (#207)
dssei Mar 11, 2024
da685b6
Use write-lock in (*TxPriorityQueue).ReapMax funcs (#209)
sigv Mar 12, 2024
6c1e784
Fix root dir for tendermint reindex command (#210)
yzang2019 Mar 14, 2024
14ca8cb
Replay events during restart to avoid tx missing (#211)
yzang2019 Mar 15, 2024
cc17b3e
Add request length check to json rpcs (#221)
philipsu522 Apr 2, 2024
9fd5d21
Add metrics for block processing latency (#222)
yzang2019 Apr 3, 2024
06acb1c
Fix metrics labeling issue (#225)
yzang2019 Apr 12, 2024
1c9059c
Merge seiv2 into main (#232)
udpatil Apr 19, 2024
9eda240
Revert "Merge seiv2 into main (#232)" (#233)
udpatil Apr 19, 2024
4127aa0
Make ReadMaxTxs atomic (#166)
codchen Nov 17, 2023
a427fc6
Support pending transaction in mempool (#169)
codchen Dec 16, 2023
0217c69
fix unconfirmed tx to consider pending txs (#172)
codchen Dec 20, 2023
38b7f99
fix pending pop (#173)
codchen Dec 20, 2023
fd99fd1
add TTL for pending txs (#174)
codchen Jan 2, 2024
8a9e977
[EVM] Fix evm pending nonce (#179)
stevenlanders Jan 4, 2024
a5296da
Fix bug when popping pending TXs (#188)
codchen Jan 15, 2024
fdbd472
Add mempool metrics for number of pending tx and expired txs (#189)
yzang2019 Jan 17, 2024
a8a80dc
[EVM] Allow multiple txs from same account in a block (#190)
stevenlanders Jan 19, 2024
5c302a4
fix removeTx to push next queued evm tx (#191)
stevenlanders Jan 19, 2024
602a7ee
fix expire metric (#193)
stevenlanders Jan 24, 2024
f6b1e36
[EVM] Fix duplicate evm txs from priority queue (#195)
stevenlanders Jan 25, 2024
85f9432
[EVM] prevent duplicate txs from getting inserted (#196)
stevenlanders Jan 29, 2024
8095234
[EVM] Add logging for expiration (#198)
stevenlanders Jan 29, 2024
fecd610
[EVM] Avoid returning nil transactions on ForEach (#197)
stevenlanders Jan 29, 2024
00c8feb
call callback from mempool (#200)
stevenlanders Feb 5, 2024
89eb920
separate limit for pending tx (#202)
codchen Feb 21, 2024
e86cc7d
Add EVM txs eviction logic (#204)
codchen Feb 26, 2024
7849f3b
Fix debug log (#205)
codchen Feb 27, 2024
ff414ed
EVM transaction replacement (#206) (#208)
codchen Mar 7, 2024
b0f1268
Add heapIndex with safety check (#213)
stevenlanders Mar 22, 2024
e608867
Pending Txs Update Condition (#214)
Kbhat1 Mar 22, 2024
8b82c53
Add metrics for mempool size changes (#220)
yzang2019 Apr 1, 2024
71e3532
[EVM] Adjust locking for replacement (#224)
stevenlanders Apr 15, 2024
fab2f60
Remove tx from cache when canAddPendingTx fails (#230)
yzang2019 Apr 17, 2024
42c9d93
add tx hash to evm info proto (#231)
stevenlanders Apr 18, 2024
51cd698
[EVM] check removed including wrapped tx state (#235)
stevenlanders Apr 30, 2024
2d723e5
Add vmError field to EvmTxInfo (#236)
codchen May 6, 2024
414074b
Add metrics for mempool change (#219)
yzang2019 Jun 18, 2024
824b819
Make RPC timeout configurable (#238)
codchen Jun 24, 2024
88c71db
Add metrics for total txs bytes in mempool (#237)
yzang2019 Jul 2, 2024
55af048
Use Marshal and UnmarshalJSON for HexBytes (#239)
jewei1997 Jul 29, 2024
bfc8a46
Allow `-` in event query (#242)
codchen Aug 15, 2024
6d7fac6
add BlockGasUsed to RequestEndBlock (#243)
jewei1997 Sep 26, 2024
ad0ec07
Add a new config to speed up block sync (#244)
yzang2019 Oct 17, 2024
2bb45d8
feat: Exclude unconditional peers when connection limit checking (#245)
blindchaser Oct 18, 2024
1b79fac
Fix handshake and dial timeout (#247)
yzang2019 Oct 28, 2024
0c549fe
Revert setting timeout (#249)
yzang2019 Oct 28, 2024
894dbd4
Improve Peer Score Algorithm (#248)
blindchaser Oct 30, 2024
ed8244b
Rollback should not cause missing validatorset (#250)
yzang2019 Dec 5, 2024
8e2407e
Add new MinTxsInBlock consensus param (#252)
codchen Jan 6, 2025
b2f26fb
Set 10 as default MinTxsInBlock (#254)
yzang2019 Jan 6, 2025
44f758d
Export methods for in-place-testnet command (#255)
codchen Jan 24, 2025
6c0f492
Update upload-artifact gh action to v4 (#257)
philipsu522 Jan 31, 2025
950e14c
Add utils to get RequestBeginBlock (#258)
codchen Feb 11, 2025
0c5efd6
Add simulate flag to RequestBeginBlock (#259)
codchen Feb 19, 2025
21865ab
fix: peer manager nil pointer (#264)
blindchaser Feb 25, 2025
db61084
make variables public (#266)
codchen Mar 3, 2025
60b8488
Update ReapMaxBytesMaxGas to include estimated gas (#263)
jewei1997 Mar 3, 2025
081c709
Exclude nil tx (#268)
codchen Mar 7, 2025
e79855c
Add a hard max gas wanted at 50mil gas as a consensus param (#267)
jewei1997 Mar 13, 2025
2bd31ef
Make missing txs check atomic (#269)
codchen Mar 14, 2025
4f384cd
Use txs from SafeGetTxsByKeys (#271)
codchen Mar 17, 2025
5b30def
Fix description of 'unconditional peer' behavior (#272)
cordt-sei Mar 17, 2025
9f362aa
Add step specific metrics (#273)
codchen Mar 19, 2025
0fb2bc3
Add logs/metrics for block proposal (#260)
dssei Apr 2, 2025
62a1421
Fix ToReqBeginBlock (#274)
codchen Apr 16, 2025
687c66f
Unsafe reset all fix (#275)
philipsu522 Apr 21, 2025
28509aa
Fix goroutine leak during block sync (#277)
yzang2019 Apr 23, 2025
54d6a13
Fix dockertest unit test (#281)
jewei1997 May 27, 2025
5f1adf9
Deprecate MinTxsPerBlock (#280)
jewei1997 May 27, 2025
550dd8c
Add local snapshot restore feature and reduce noisy p2p logs (#283)
yzang2019 Jun 10, 2025
cb799e9
Add godeltapprof to sei-tendermint to serve additional profiling data…
udpatil Jun 11, 2025
f10c2dd
require 70% patch coverage (#286)
udpatil Jun 18, 2025
38bf0ad
Add CODEOWNERS (#288)
philipsu522 Jul 23, 2025
0a6f70f
chore: bump btcec to v2.3.2, x/crypto to v0.31.0 (#287)
blindchaser Jul 23, 2025
1da0443
fix: prevent excessive Total values (#290)
blindchaser Jul 31, 2025
528d965
Purge expired txs from mempool cleanly (#289)
codchen Aug 6, 2025
ce484bd
[SEI-8117] Verify proposer selection algo upon state sync (#291)
jewei1997 Aug 7, 2025
44c1fd7
more granular buckets for consensus histograms (#296)
pompon0 Aug 18, 2025
23f5c05
Use testing temp dir in tests (#293)
masih Aug 19, 2025
7fe1a5e
Consider non-existing PartSet as incomplete (#294)
masih Aug 19, 2025
7dbabc8
Fix stale code generation and lint for go and proto files (#297)
masih Aug 19, 2025
a23f6c1
bumped golang to 1.24.5 (#298)
pompon0 Aug 21, 2025
b71a071
Add yzang2019 to codeowners (#303)
philipsu522 Aug 21, 2025
8cb1fab
Set default RemoveExpiredTxsFromQueue to be true (#307)
philipsu522 Aug 22, 2025
fe32d4d
Codex AI Review (#302)
Kbhat1 Aug 25, 2025
7504bdb
Add metrics to track duplicate txs (#299)
yzang2019 Aug 26, 2025
89ef145
Reduce tx cache memory footprint by half (#309)
masih Aug 27, 2025
9aa90ff
BaseService refactor (#300)
pompon0 Aug 28, 2025
384806a
Remove redundant mockery installation in CI and upgrade go (#310)
masih Aug 29, 2025
3e14b27
validate peer block height in blocksync (#304)
codchen Sep 1, 2025
2b3572d
only allow 1 tx per envelope (#305)
codchen Sep 1, 2025
44dcb81
hardcoded simple-priority queue as the only message queue (#308)
pompon0 Sep 3, 2025
4209f85
Estimate Gas Fix (#314)
jewei1997 Sep 11, 2025
b3c3ea5
removed support for vote extensions (#312)
pompon0 Sep 15, 2025
06dc2f6
fix for contention on heightIndex in mempool (#315)
pompon0 Sep 19, 2025
7f34114
Fix cache max size for duplicate txs (#317)
yzang2019 Sep 19, 2025
7bf4518
Do not enforce codeowners for now (#320)
philipsu522 Sep 23, 2025
e3ec258
Integrate go lint unified CI (#313)
masih Sep 24, 2025
3bfb0fc
refactor of tcp connection lifecycle (#321)
pompon0 Sep 25, 2025
63490ff
refactor of MConnection internals (#322)
pompon0 Sep 26, 2025
6197ae7
Revert "refactor of MConnection internals (#322)" (#324)
pompon0 Sep 26, 2025
6c96c70
fix: add recovery on CreateProposalBlock (#319)
blindchaser Sep 26, 2025
94f51a5
Add `GetTxPriorityHint` and mempool backpressure via priority drops
masih Sep 29, 2025
8543810
Add more trace spans to execution critical path (#323)
udpatil Sep 29, 2025
f09085a
Update Codex To Gpt-5-Codex (#325)
Kbhat1 Sep 29, 2025
e8d4e7b
removed MemoryTransport (#327)
pompon0 Oct 1, 2025
00e94e0
Merge remote-tracking branch 'src-sei-tendermint/main' into masih/mon…
masih Oct 1, 2025
847aaa9
Move CI and remove redundant github files
masih Oct 1, 2025
d218217
Fix go mod relative paths
masih Oct 1, 2025
23f4765
Fix docker build
masih Oct 1, 2025
a1514a2
Test buf CI build with expliit input
masih Oct 2, 2025
53ad213
Fix typo in buf build
masih Oct 2, 2025
a9fd600
Drop Buf CI integration entirely; to be added separately
masih Oct 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
118 changes: 118 additions & 0 deletions .github/workflows/sei-tendermint-unti-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: Test
on:
pull_request:
push:
branches:
- main
- release/**

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
part: ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19"]
steps:
- uses: actions/setup-python@v3
- uses: actions/setup-go@v3
with:
go-version: "1.24"
- uses: actions/checkout@v3
- name: Get data from Go build cache
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/golangci-lint
~/.cache/go-build
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
**/**.go
"!test/"
go.mod
go.sum
Makefile
- name: Run Go Tests
working-directory: ./sei-tendermint
run: |
NUM_SPLIT=20
make split-test-packages
make test-group-${{matrix.part}}

- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: "${{ github.sha }}-${{ matrix.part }}-coverage"
path: ./${{ matrix.part }}.profile.out

upload-coverage-report:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.24"

# Download all coverage reports from the 'tests' job
- name: Download coverage reports
uses: actions/download-artifact@v4

- name: Set GOPATH
run: echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV

- name: Add GOPATH/bin to PATH
run: echo "GOBIN=$(go env GOPATH)/bin" >> $GITHUB_ENV

- name: Install gocovmerge
run: go get github.com/wadey/gocovmerge && go install github.com/wadey/gocovmerge

- name: Merge coverage reports
run: gocovmerge $(find . -type f -name '*profile.out') > coverage.txt

- name: Check coverage report lines
run: wc -l coverage.txt
continue-on-error: true

- name: Check coverage report files
run: ls **/*profile.out
continue-on-error: true

# Now we upload the merged report to Codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.txt
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true

unit-test-check:
name: Unit Test Check
runs-on: ubuntu-latest
needs: tests
if: always()
steps:
- name: Get workflow conclusion
id: workflow_conclusion
uses: nick-fields/retry@v2
with:
max_attempts: 2
retry_on: error
timeout_seconds: 60
command: |
jobs=$(curl https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs)
job_statuses=$(echo "$jobs" | jq -r '.jobs[] | .conclusion')

for status in $job_statuses
do
echo "Status: $status"
if [[ "$status" == "failure" ]]; then
echo "Some or all tests have failed!"
exit 1
fi
done

echo "All tests have passed!"
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ COPY go.mod go.sum ./
COPY sei-wasmvm/go.mod sei-wasmvm/go.sum ./sei-wasmvm/
COPY sei-wasmd/go.mod sei-wasmd/go.sum ./sei-wasmd/
COPY sei-cosmos/go.mod sei-cosmos/go.sum ./sei-cosmos/
COPY sei-tendermint/go.mod sei-tendermint/go.sum ./sei-tendermint/
RUN go mod download

# Copy source and build (CGO enabled for libwasmvm)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ replace (
github.com/sei-protocol/sei-db => github.com/sei-protocol/sei-db v0.0.51
// Latest goleveldb is broken, we have to stick to this version
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
github.com/tendermint/tendermint => github.com/sei-protocol/sei-tendermint v0.6.5
github.com/tendermint/tendermint => ./sei-tendermint
github.com/tendermint/tm-db => github.com/sei-protocol/tm-db v0.0.4
golang.org/x/crypto => golang.org/x/crypto v0.31.0
google.golang.org/grpc => google.golang.org/grpc v1.33.2
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1997,8 +1997,6 @@ github.com/sei-protocol/sei-iavl v0.2.0 h1:OisPjXiDT+oe+aeckzDEFgkZCYuUjHgs/PP8D
github.com/sei-protocol/sei-iavl v0.2.0/go.mod h1:qRf8QYUPfrAO7K6VDB2B2l/N7K5L76OorioGBcJBIbw=
github.com/sei-protocol/sei-ibc-go/v3 v3.3.6 h1:HHWvrslBpkXBHUFs+azwl36NuFEJyMo6huvsNPG854c=
github.com/sei-protocol/sei-ibc-go/v3 v3.3.6/go.mod h1:VwB/vWu4ysT5DN2aF78d17LYmx3omSAdq6gpKvM7XRA=
github.com/sei-protocol/sei-tendermint v0.6.5 h1:6jJOw330mcK8Xu8PYiChByHpsl+yGujsl1WZXDW0G4Q=
github.com/sei-protocol/sei-tendermint v0.6.5/go.mod h1:SSZv0P1NBP/4uB3gZr5XJIan3ks3Ui8FJJzIap4r6uc=
github.com/sei-protocol/sei-tm-db v0.0.5 h1:3WONKdSXEqdZZeLuWYfK5hP37TJpfaUa13vAyAlvaQY=
github.com/sei-protocol/sei-tm-db v0.0.5/go.mod h1:Cpa6rGyczgthq7/0pI31jys2Fw0Nfrc+/jKdP1prVqY=
github.com/sei-protocol/tm-db v0.0.4 h1:7Y4EU62Xzzg6wKAHEotm7SXQR0aPLcGhKHkh3qd0tnk=
Expand Down
2 changes: 1 addition & 1 deletion sei-cosmos/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ replace (
github.com/sei-protocol/sei-db => github.com/sei-protocol/sei-db v0.0.51
// Latest goleveldb is broken, we have to stick to this version
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
github.com/tendermint/tendermint => github.com/sei-protocol/sei-tendermint v0.6.5
github.com/tendermint/tendermint => ../sei-tendermint
// latest grpc doesn't work with with our modified proto compiler, so we need to enforce
// the following version across all dependencies.
google.golang.org/grpc => google.golang.org/grpc v1.33.2
Expand Down
2 changes: 0 additions & 2 deletions sei-cosmos/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -968,8 +968,6 @@ github.com/sei-protocol/sei-db v0.0.51 h1:jK6Ps+jDbGdWIPZttaWk7VIsq8aLWWlkTp9axI
github.com/sei-protocol/sei-db v0.0.51/go.mod h1:m5g7p0QeAS3dNJHIl28zQpzOgxQmvYqPb7t4hwgIOCA=
github.com/sei-protocol/sei-iavl v0.1.9 h1:y4mVYftxLNRs6533zl7N0/Ch+CzRQc04JDfHolIxgBE=
github.com/sei-protocol/sei-iavl v0.1.9/go.mod h1:7PfkEVT5dcoQE+s/9KWdoXJ8VVVP1QpYYPLdxlkSXFk=
github.com/sei-protocol/sei-tendermint v0.6.5 h1:6jJOw330mcK8Xu8PYiChByHpsl+yGujsl1WZXDW0G4Q=
github.com/sei-protocol/sei-tendermint v0.6.5/go.mod h1:SSZv0P1NBP/4uB3gZr5XJIan3ks3Ui8FJJzIap4r6uc=
github.com/sei-protocol/sei-tm-db v0.0.5 h1:3WONKdSXEqdZZeLuWYfK5hP37TJpfaUa13vAyAlvaQY=
github.com/sei-protocol/sei-tm-db v0.0.5/go.mod h1:Cpa6rGyczgthq7/0pI31jys2Fw0Nfrc+/jKdP1prVqY=
github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
Expand Down
11 changes: 11 additions & 0 deletions sei-tendermint/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
Language: Proto
BasedOnStyle: Google
IndentWidth: 2
ColumnLimit: 0
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
SpacesInSquareBrackets: true
ReflowComments: true
SortIncludes: true
SortUsingDeclarations: true
5 changes: 5 additions & 0 deletions sei-tendermint/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build
test/e2e/build
test/e2e/networks
test/logs
test/p2p/data
16 changes: 16 additions & 0 deletions sei-tendermint/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{sh,Makefile}]
indent_style = tab

[*.proto]
indent_style = space
indent_size = 2
57 changes: 57 additions & 0 deletions sei-tendermint/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
*.bak
*.iml
*.log
*.swo
*.swp
*/.glide
*/vendor
.DS_Store
.bak
.idea/
.revision
.tendermint
.tendermint-lite
.terraform
.vagrant
.vendor-new/
.vscode/
abci/abci-cli
addrbook.json
artifacts/*
build/*
coverage.txt
docs/.vuepress/dist
docs/_build
docs/dist
docs/node_modules/
docs/spec
docs/.vuepress/public/rpc
index.html.md
libs/pubsub/query/fuzz_test/output
profile\.out
remote_dump
rpc/test/.tendermint
scripts/cutWALUntil/cutWALUntil
scripts/wal2json/wal2json
shunit2
terraform.tfstate
terraform.tfstate.backup
terraform.tfstate.d
test/app/grpc_client
test/e2e/build
test/e2e/networks/*/
test/logs
test/p2p/data/
vendor
test/fuzz/**/corpus
test/fuzz/**/crashers
test/fuzz/**/suppressions
test/fuzz/**/*.zip
proto/spec/**/*.pb.go
*.aux
*.bbl
*.blg
*.log
*.pdf
*.gz
*.dvi
59 changes: 59 additions & 0 deletions sei-tendermint/.golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
linters:
enable:
- asciicheck
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- exportloopref
# - funlen
# - gochecknoglobals
# - gochecknoinits
# - gocognit
- goconst
# - gocritic
# - gocyclo
# - godox
- gofmt
- goimports
- revive
- gosec
- gosimple
- govet
- ineffassign
# - interfacer
# - lll
# - maligned
- misspell
- nakedret
- nolintlint
- prealloc
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
# - unparam
- unused
- varcheck
# - whitespace
# - wsl

issues:
exclude-rules:
- path: _test\.go
linters:
- gosec
max-same-issues: 50

linters-settings:
dogsled:
max-blank-identifiers: 3
golint:
min-confidence: 0
maligned:
suggest-new: true
misspell:
locale: US
36 changes: 36 additions & 0 deletions sei-tendermint/.goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
project_name: tendermint

env:
# Require use of Go modules.
- GO111MODULE=on

builds:
- id: "tendermint"
main: ./cmd/tendermint/main.go
ldflags:
- -s -w -X github.com/tendermint/tendermint/version.TMCoreSemVer={{ .Version }}
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm
- arm64

checksum:
name_template: SHA256SUMS-{{.Version}}.txt
algorithm: sha256

release:
name_template: "{{.Version}} (WARNING: BETA SOFTWARE)"

archives:
- files:
- LICENSE
- README.md
- UPGRADING.md
- SECURITY.md
- CHANGELOG.md
11 changes: 11 additions & 0 deletions sei-tendermint/.markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
default: true
MD001: false
MD007: {indent: 4}
MD013: false
MD024: {siblings_only: true}
MD025: false
MD033: false
MD036: false
MD010: false
MD012: false
MD028: false
6 changes: 6 additions & 0 deletions sei-tendermint/.markdownlintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
docs/node_modules
CHANGELOG.md
docs/architecture/*
crypto/secp256k1/**
scripts/*
.github
6 changes: 6 additions & 0 deletions sei-tendermint/.md-link-check.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"retryOn429": true,
"retryCount": 5,
"fallbackRetryDelay": "30s",
"aliveStatusCodes": [200, 206, 503]
}
Loading
Loading