Skip to content

feat: Giga RPC node (sequential execution)#2708

Merged
arajasek merged 6 commits intomainfrom
asr/rpc-giga
Jan 27, 2026
Merged

feat: Giga RPC node (sequential execution)#2708
arajasek merged 6 commits intomainfrom
asr/rpc-giga

Conversation

@arajasek
Copy link
Copy Markdown
Contributor

@arajasek arajasek commented Jan 15, 2026

Describe your changes and provide context

This PR supports running a Giga node, in consensus with other non-Giga nodes. It only supports sequential execution for Giga, falling back to the v2 logic for cosmos and interop transactions.

TODO:

Testing performed to validate your change

  • tests pass
  • devnet runs with 1/4 nodes using giga, and both evm and cosmos txs hurled at the chain

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 15, 2026

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedJan 27, 2026, 4:28 PM

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 15, 2026

Codecov Report

❌ Patch coverage is 62.20472% with 48 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.81%. Comparing base (d2b43d3) to head (8c35752).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
app/app.go 58.88% 32 Missing and 5 partials ⚠️
giga/executor/utils/errors.go 0.00% 5 Missing ⚠️
giga/executor/precompiles/failfast.go 0.00% 4 Missing ⚠️
sei-tendermint/internal/state/execution.go 92.85% 1 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2708      +/-   ##
==========================================
+ Coverage   52.41%   56.81%   +4.40%     
==========================================
  Files        1022     2004     +982     
  Lines       84800   164794   +79994     
==========================================
+ Hits        44446    93624   +49178     
- Misses      36226    62948   +26722     
- Partials     4128     8222    +4094     
Flag Coverage Δ
sei-chain 41.65% <41.73%> (?)
sei-cosmos 48.12% <ø> (-0.01%) ⬇️
sei-db 68.72% <ø> (ø)
sei-tendermint 58.57% <92.85%> (+0.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
sei-tendermint/internal/state/execution.go 80.81% <92.85%> (+1.51%) ⬆️
giga/executor/precompiles/failfast.go 27.27% <0.00%> (ø)
giga/executor/utils/errors.go 0.00% <0.00%> (ø)
app/app.go 70.86% <58.88%> (ø)

... and 1140 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

}

func (app *App) ProcessTxsSynchronousGiga(ctx sdk.Context, txs [][]byte, typedTxs []sdk.Tx, absoluteTxIndices []int) []*abci.ExecTxResult {
defer metrics.BlockProcessLatency(time.Now(), metrics.SYNCHRONOUS)

Check warning

Code scanning / CodeQL

Calling the system time Warning

Calling the system time may be a possible source of non-determinism
@arajasek arajasek force-pushed the asr/rpc-giga branch 12 times, most recently from b8763f8 to 130c3e5 Compare January 20, 2026 15:18
@arajasek arajasek marked this pull request as ready for review January 20, 2026 20:51
@arajasek arajasek changed the title WIP: Giga RPC node feat: Giga RPC node (sequential execution) Jan 21, 2026
@arajasek arajasek force-pushed the asr/rpc-giga branch 2 times, most recently from 5547872 to 9ff6ef2 Compare January 23, 2026 15:31
}
continue
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would need to call ctx.GigaMultiStore().WriteGiga() here since giga cache isn't visible to v2 executor so need flushing

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thank you!

@arajasek arajasek force-pushed the asr/rpc-giga branch 3 times, most recently from 5394e39 to 41ecdbc Compare January 27, 2026 15:27
@arajasek arajasek merged commit fd17b12 into main Jan 27, 2026
43 checks passed
@arajasek arajasek deleted the asr/rpc-giga branch January 27, 2026 16:51
arajasek added a commit that referenced this pull request Feb 5, 2026
This is a followup to #2708 adding support for OCC mode to Giga RPC
nodes. The logic is:
- Make a list of EVM txs and non-EVM txs
- Run EVM txs in parallel
- If they fail due to interop, throw away all your work and just use the
v2 logic for ALL txs
- Run non-EVM txs in parallel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants