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
Fixed misleading info about cross-shard miniblocks processing #2689
Conversation
SebastianMarian
commented
Jan 13, 2021
•
edited
edited
- 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)
} | ||
|
||
processedTxHashes := make([][]byte, 0) | ||
for index := range miniBlockRewardTxs { | ||
if !haveTime() { | ||
return processedTxHashes, process.ErrTimeIsOut | ||
return processedTxHashes, len(processedTxHashes), process.ErrTimeIsOut |
There was a problem hiding this comment.
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)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System test passed 👍🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System test passed