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

Fix genesis indexing txs order #4156

Merged
merged 5 commits into from
Jun 9, 2022
Merged

Conversation

ssd04
Copy link
Contributor

@ssd04 ssd04 commented Jun 3, 2022

Set minting transactions from genesis to be set in the first miniblock, handled by metachain.

  • handle mint miniblock separately

@ssd04 ssd04 self-assigned this Jun 3, 2022
txs []coreData.TransactionHandler,
txsPoolPerShard map[uint32]*indexer.Pool,
) (*block.MiniBlock, error) {
txHashes := make([][]byte, 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

txHashes := make([][]byte, 0, len(txs))

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

@@ -362,9 +362,35 @@ func createMiniBlocks(shardIDs []uint32, blockType block.Type) []*block.MiniBloc
return miniBlocks
}

func (ap *accountsParser) setMintingTxsPoolAndMiniBlock(
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe you can change the name of the function
putMintingTxsInPoolAndCreateMiniblock

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@codecov-commenter
Copy link

codecov-commenter commented Jun 3, 2022

Codecov Report

Merging #4156 (5c3fe64) into rc/2022-june (7e53b7d) will increase coverage by 0.00%.
The diff coverage is 84.61%.

@@              Coverage Diff              @@
##           rc/2022-june    #4156   +/-   ##
=============================================
  Coverage         75.27%   75.27%           
=============================================
  Files               617      617           
  Lines             82393    82410   +17     
=============================================
+ Hits              62023    62036   +13     
- Misses            15681    15683    +2     
- Partials           4689     4691    +2     
Impacted Files Coverage Δ
genesis/parsing/accountsParser.go 95.69% <84.61%> (-1.25%) ⬇️
storage/txcache/txListBySenderMap.go 97.50% <0.00%> (-2.50%) ⬇️
p2p/libp2p/netMessenger.go 75.93% <0.00%> (+0.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7e53b7d...5c3fe64. Read the comment docs.

@bogdan-rosianu bogdan-rosianu self-requested a review June 3, 2022 12:03
Copy link
Collaborator

@gabi-vuls gabi-vuls 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. Errors and warnings are safe .

@@ Log scanner @@

fix-genesis-indexing-txs-order

================================================================================

  • Known Warnings 22
  • New Warnings 5
  • Known Errors 0
  • New Errors 2
  • Panics 0
    ================================================================================

@ssd04 ssd04 merged commit 364d634 into rc/2022-june Jun 9, 2022
@ssd04 ssd04 deleted the fix-genesis-indexing-txs-order branch June 9, 2022 15: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

6 participants