Skip to content

Commit

Permalink
Merge pull request #294 from kaleido-io/fix-besu
Browse files Browse the repository at this point in the history
Fix Besu genesis
  • Loading branch information
nguyer authored Mar 22, 2024
2 parents 3679daf + 3f228c1 commit f608bd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/blockchain/ethereum/besu/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func CreateGenesis(addresses []string, blockPeriod int, chainID int64) *Genesis
alloc[address] = &Alloc{
Balance: "0x200000000000000000000000000000000000000000000000000000000000000",
}
extraData += extraData
extraData += address
}
extraData = strings.ReplaceAll(fmt.Sprintf("%-236s", extraData), " ", "0")
return &Genesis{
Expand Down
2 changes: 1 addition & 1 deletion internal/blockchain/ethereum/besu/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestCreateGenesis(t *testing.T) {
alloc[address] = &Alloc{
Balance: "0x200000000000000000000000000000000000000000000000000000000000000",
}
extraData += extraData
extraData += address
}
extraData = strings.ReplaceAll(fmt.Sprintf("%-236s", extraData), " ", "0")
expectedGenesis := &Genesis{
Expand Down

0 comments on commit f608bd5

Please sign in to comment.