Skip to content

[fix] bootstrap balances should be done only for genesis block testing#375

Merged
shrimalmadhur merged 2 commits intomasterfrom
madhur/fix-bootstrap-behavior
Dec 8, 2022
Merged

[fix] bootstrap balances should be done only for genesis block testing#375
shrimalmadhur merged 2 commits intomasterfrom
madhur/fix-bootstrap-behavior

Conversation

@shrimalmadhur
Copy link
Copy Markdown
Contributor

Fixes # .

Motivation

When we run parallel validation from any block other then genesis, we are using bootstrap_balances.json to initialize balances which results into balance mismatch because actual balances in n-1 block might have been updated and we need to use that.

Solution

Add a condition to validation that, bootstrap balances only if startIndex is empty or is genesis block.

Open questions

@shrimalmadhur shrimalmadhur merged commit 11cc4ab into master Dec 8, 2022
@shrimalmadhur shrimalmadhur deleted the madhur/fix-bootstrap-behavior branch December 8, 2022 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants