Skip to content

Conversation

yihuang
Copy link

@yihuang yihuang commented Apr 5, 2024

Solution:

  • save the cost of repeated encoding/decoding during the block execution
  • also migrate existing transient stores to object stores

Closes: #XXX

Description


For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@yihuang yihuang requested a review from mmsqe April 5, 2024 03:09
k.WithChainID(ctx)

// cache params object
_ = k.GetParams(ctx)

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods

path flow from Begin/EndBlock to a panic call
store := k.storeService.OpenKVStore(ctx)
bz, err := store.Get(types.KeyPrefixParams)
if err != nil {
panic(err)

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
Copy link

codecov bot commented Apr 5, 2024

Codecov Report

Attention: Patch coverage is 87.17949% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 62.92%. Comparing base (c073162) to head (98161d9).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #454      +/-   ##
===========================================
+ Coverage    62.79%   62.92%   +0.13%     
===========================================
  Files          127      127              
  Lines        12038    12067      +29     
===========================================
+ Hits          7559     7593      +34     
+ Misses        3936     3933       -3     
+ Partials       543      541       -2     
Files Coverage Δ
app/app.go 80.55% <100.00%> (-0.03%) ⬇️
x/evm/keeper/abci.go 100.00% <100.00%> (ø)
x/evm/keeper/bloom.go 100.00% <100.00%> (ø)
x/evm/keeper/keeper.go 86.15% <100.00%> (-0.11%) ⬇️
x/evm/keeper/state_transition.go 70.74% <100.00%> (ø)
x/feemarket/keeper/keeper.go 51.61% <100.00%> (ø)
x/feemarket/keeper/params.go 72.34% <100.00%> (+23.76%) ⬆️
x/evm/keeper/params.go 75.00% <80.00%> (+22.05%) ⬆️
x/evm/types/key.go 0.00% <0.00%> (ø)

Solution:
- save the cost of repeated encoding/decoding during the block execution
- also migrate existing transient stores to object stores

Update CHANGELOG.md

Signed-off-by: yihuang <[email protected]>

Update x/feemarket/types/keys.go

Signed-off-by: yihuang <[email protected]>

renmae

fix test
@yihuang yihuang enabled auto-merge (squash) April 5, 2024 03:47
@yihuang yihuang merged commit c684a04 into crypto-org-chain:develop Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants