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

Fixed misleading info about cross-shard miniblocks processing #2689

Merged

Conversation

SebastianMarian
Copy link
Contributor

@SebastianMarian SebastianMarian commented Jan 13, 2021

  • Fixed misleading info about number of txs processed for a cross shard miniblock when an error is occured ("time is out" or any other error)

…miniblocks when an error is occured ("time is out" or any other error)
@SebastianMarian SebastianMarian added the type:feature New feature or request label Jan 13, 2021
@SebastianMarian SebastianMarian self-assigned this Jan 13, 2021
@sasurobert sasurobert self-requested a review January 13, 2021 12:24
@ccorcoveanu ccorcoveanu self-requested a review January 13, 2021 12:25
sasurobert
sasurobert previously approved these changes Jan 13, 2021
}

processedTxHashes := make([][]byte, 0)
for index := range miniBlockRewardTxs {
if !haveTime() {
return processedTxHashes, process.ErrTimeIsOut
return processedTxHashes, len(processedTxHashes), process.ErrTimeIsOut
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe I'm missing something, but isn't the second returned parameter always len(processedTxHashes) (or index in the following cases below)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you are right

sasurobert
sasurobert previously approved these changes Jan 13, 2021
Copy link
Contributor

@0xmtf 0xmtf left a comment

Choose a reason for hiding this comment

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

System test passed 👍🏻

Copy link
Contributor

@valentincraciun99 valentincraciun99 left a comment

Choose a reason for hiding this comment

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

System test passed

@LucianMincu LucianMincu merged commit e40ab4c into development Jan 13, 2021
@LucianMincu LucianMincu deleted the Fix-misleading-info-about-cross-miniblocks-processing branch January 13, 2021 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants