Skip to content
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

[state] Remove receipt checking after runAction #3780

Merged
merged 3 commits into from
Jan 30, 2023
Merged

[state] Remove receipt checking after runAction #3780

merged 3 commits into from
Jan 30, 2023

Conversation

Liuhaai
Copy link
Member

@Liuhaai Liuhaai commented Jan 18, 2023

Description

fix #3555

Type of change

Please delete options that are not relevant.

  • [] Bug fix (non-breaking change which fixes an issue)
  • [] New feature (non-breaking change which adds functionality)
  • [] Code refactor or improvement
  • [] Breaking change (fix or feature that would cause a new or changed behavior of existing functionality)
  • [] This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • [] make test
  • [] fullsync
  • [] Other test (please specify)

Test Configuration:

  • Firmware version:
  • Hardware:
  • Toolchain:
  • SDK:

Checklist:

  • [] My code follows the style guidelines of this project
  • [] I have performed a self-review of my code
  • [] I have commented my code, particularly in hard-to-understand areas
  • [] I have made corresponding changes to the documentation
  • [] My changes generate no new warnings
  • [] I have added tests that prove my fix is effective or that my feature works
  • [] New and existing unit tests pass locally with my changes
  • [] Any dependent changes have been merged and published in downstream modules

@codecov
Copy link

codecov bot commented Jan 18, 2023

Codecov Report

Merging #3780 (8a9a178) into master (263ff82) will increase coverage by 0.97%.
The diff coverage is 80.52%.

@@            Coverage Diff             @@
##           master    #3780      +/-   ##
==========================================
+ Coverage   74.47%   75.45%   +0.97%     
==========================================
  Files         269      300      +31     
  Lines       23925    25413    +1488     
==========================================
+ Hits        17818    19175    +1357     
- Misses       5174     5255      +81     
- Partials      933      983      +50     
Impacted Files Coverage Δ
action/actctx.go 90.62% <ø> (+6.25%) ⬆️
action/action.go 82.35% <ø> (ø)
action/action_deserializer.go 57.14% <ø> (ø)
action/candidate_update.go 88.88% <0.00%> (-4.14%) ⬇️
action/consignment_transfer.go 90.41% <ø> (ø)
action/const.go 100.00% <ø> (ø)
action/execution.go 83.78% <ø> (ø)
action/grantreward.go 68.57% <ø> (ø)
action/protocol/account/protocol.go 86.90% <ø> (ø)
action/protocol/dock.go 100.00% <ø> (ø)
... and 279 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Collaborator

@CoderZhi CoderZhi left a comment

Choose a reason for hiding this comment

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

Comment on lines +735 to +736
err = acc.Register(reg)
require.NoError(t, err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

require.NoError(t, acc.Register(reg))

}
blkCtx.GasLimit -= receipt.GasConsumed
ctxWithBlockContext = protocol.WithBlockCtx(ctx, blkCtx)
receipts = append(receipts, receipt)
Copy link
Member

Choose a reason for hiding this comment

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

remove empty line

@@ -160,16 +158,15 @@ func (ws *workingSet) runAction(
// Handle action
reg, ok := protocol.GetRegistry(ctx)
if !ok {
return nil, nil
return nil, errors.New("protocol is empty")
Copy link
Member

Choose a reason for hiding this comment

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

could this potentially affect fullsync of past blocks?

@sonarcloud
Copy link

sonarcloud bot commented Jan 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Liuhaai Liuhaai merged commit 32c3568 into master Jan 30, 2023
Liuhaai added a commit to Liuhaai/iotex-core that referenced this pull request Feb 13, 2023
dustinxie pushed a commit that referenced this pull request Feb 18, 2023
* remove receipt checking after runAction
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.

[workingset] Investigate nil receipt
3 participants