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

Fixes for chain simulator #5697

Merged
merged 4 commits into from Nov 9, 2023
Merged

Conversation

iulianpascalau
Copy link
Contributor

Reasoning behind the pull request

  • epoch change fixes
  • started implementation for the chain simulator facade
  • added & called Close on all inner components

Proposed changes

Testing procedure

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

Copy link

codecov bot commented Nov 9, 2023

Codecov Report

Attention: 207 lines in your changes are missing coverage. Please review.

Comparison is base (1588b6b) 79.19% compared to head (00a1fed) 79.05%.
Report is 1 commits behind head on feat/test-only-processor-node.

❗ Current head 00a1fed differs from pull request most recent head 1aaa048. Consider uploading reports for the commit 1aaa048 to get more accurate results

Additional details and impacted files
@@                        Coverage Diff                        @@
##           feat/test-only-processor-node    #5697      +/-   ##
=================================================================
- Coverage                          79.19%   79.05%   -0.15%     
=================================================================
  Files                                725      728       +3     
  Lines                              95231    95452     +221     
=================================================================
+ Hits                               75420    75460      +40     
- Misses                             14456    14634     +178     
- Partials                            5355     5358       +3     
Files Coverage Δ
node/chainSimulator/components/storageService.go 0.00% <0.00%> (ø)
node/chainSimulator/chainSimulator.go 83.33% <85.29%> (+3.92%) ⬆️
...e/chainSimulator/components/bootstrapComponents.go 0.00% <0.00%> (ø)
node/chainSimulator/components/dataComponents.go 0.00% <0.00%> (ø)
node/chainSimulator/components/coreComponents.go 0.00% <0.00%> (ø)
node/chainSimulator/components/statusComponents.go 0.00% <0.00%> (ø)
.../chainSimulator/components/statusCoreComponents.go 0.00% <0.00%> (ø)
node/chainSimulator/configs/configs.go 0.00% <0.00%> (ø)
node/chainSimulator/facade.go 54.54% <54.54%> (ø)
...ode/chainSimulator/components/networkComponents.go 0.00% <0.00%> (ø)
... and 5 more

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

miiu96
miiu96 previously approved these changes Nov 9, 2023
@@ -23,6 +23,9 @@ import (
"github.com/multiversx/mx-chain-go/testscommon"
)

var oneEgld = big.NewInt(1000000000000000000)
var initialStakedEgldPerNode = big.NewInt(0).Mul(oneEgld, big.NewInt(2500))
var initialSupply = big.NewInt(0).Mul(oneEgld, big.NewInt(20000000)) // 20 million EGLD
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Comment on lines 74 to 75
// AggregateErrors can aggregate all provided error strings into a single error variable
func AggregateErrors(errorStrings []string) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

AggregateErrors is using global errClose which makes it specific to close errors; rename function? or set errClose as parameter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point. Will refactor 👍

@miiu96 miiu96 merged commit 921fcca into feat/test-only-processor-node Nov 9, 2023
5 checks passed
@miiu96 miiu96 deleted the epoch-changes-fixes branch November 9, 2023 14:31
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.

None yet

3 participants