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

Add identifer in tsm #5258

Merged
merged 5 commits into from
May 23, 2023

Conversation

BeniaminDrasovean
Copy link
Contributor

Proposed changes

  • Get identifier from trieStorageManager and not from storer.

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?

@BeniaminDrasovean BeniaminDrasovean added the ignore-for-release-notes Do not include item in release notes label May 22, 2023
@codecov
Copy link

codecov bot commented May 22, 2023

Codecov Report

Patch coverage: 82.39% and project coverage change: +0.04 🎉

Comparison is base (77f6823) 79.46% compared to head (31ff3b7) 79.50%.

❗ Current head 31ff3b7 differs from pull request most recent head 075f73a. Consider uploading reports for the commit 075f73a to get more accurate results

Additional details and impacted files
@@                       Coverage Diff                        @@
##           feat/sync-missing-trie-nodes    #5258      +/-   ##
================================================================
+ Coverage                         79.46%   79.50%   +0.04%     
================================================================
  Files                               683      686       +3     
  Lines                             88484    88808     +324     
================================================================
+ Hits                              70313    70607     +294     
- Misses                            13029    13040      +11     
- Partials                           5142     5161      +19     
Impacted Files Coverage Δ
api/middleware/responseLogger.go 66.66% <0.00%> (ø)
storage/pruning/pruningStorer.go 78.81% <ø> (+0.25%) ⬆️
trie/baseIterator.go 70.58% <ø> (ø)
trie/depthFirstSync.go 74.54% <ø> (ø)
trie/doubleListSync.go 80.85% <ø> (ø)
trie/sync.go 79.69% <ø> (ø)
process/sync/baseSync.go 64.62% <9.52%> (-1.95%) ⬇️
factory/consensus/consensusComponents.go 95.45% <66.66%> (-0.38%) ⬇️
process/sync/shardblock.go 67.14% <66.66%> (-0.18%) ⬇️
vm/factory/systemSCFactory.go 77.77% <66.66%> (ø)
... and 30 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@iulianpascalau iulianpascalau self-requested a review May 22, 2023 13:49
@@ -2,6 +2,7 @@ package components

import (
"fmt"
"github.com/multiversx/mx-chain-go/testscommon/storage"
Copy link
Contributor

Choose a reason for hiding this comment

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

go imports

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@@ -117,6 +118,14 @@ func (s *MemDbMock) RangeKeys(handler func(key []byte, value []byte) bool) {
}
}

func (s *MemDbMock) GetIdentifier() string {
Copy link
Contributor

Choose a reason for hiding this comment

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

missing comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added.

}

return nil, core.NewGetNodeFromDBErrWithKey(n, err, dbWithID.GetIdentifier())
return nil, core.NewGetNodeFromDBErrWithKey(n, err, db.GetIdentifier())
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@ssd04 ssd04 self-requested a review May 22, 2023 14:58
Copy link
Contributor

@ssd04 ssd04 left a comment

Choose a reason for hiding this comment

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

no other comments from me

@BeniaminDrasovean BeniaminDrasovean merged commit 4672b47 into feat/sync-missing-trie-nodes May 23, 2023
4 checks passed
@BeniaminDrasovean BeniaminDrasovean deleted the add-identifer-in-tsm branch May 23, 2023 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore-for-release-notes Do not include item in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants