From 7f74fc8123c0226a7bcba5c657eda580d21ef83b Mon Sep 17 00:00:00 2001 From: Goran Rojovic Date: Tue, 13 Jun 2023 15:54:16 +0200 Subject: [PATCH] Fix --- command/genesis/polybft_params.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/genesis/polybft_params.go b/command/genesis/polybft_params.go index 6788871d2d..118e1f31a7 100644 --- a/command/genesis/polybft_params.go +++ b/command/genesis/polybft_params.go @@ -505,7 +505,7 @@ func (p *genesisParams) getValidatorAccounts( MultiAddr: parts[0], Address: addr, BlsKey: trimmedBLSKey, - Balance: big.NewInt(0), + Balance: getPremineAmount(addr, premineBalances, big.NewInt(0)), Stake: big.NewInt(0), } } @@ -524,7 +524,7 @@ func (p *genesisParams) getValidatorAccounts( } for _, v := range validators { - v.Balance = big.NewInt(0) + v.Balance = getPremineAmount(v.Address, premineBalances, big.NewInt(0)) v.Stake = big.NewInt(0) }