coinbase / mesh-cli

CLI for the Mesh API
Apache License 2.0
155 stars 94 forks source link

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

Closed shrimalmadhur closed 1 year ago

shrimalmadhur commented 1 year ago

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