Skip to content

Commit f608bd5

Browse files
authored
Merge pull request #294 from kaleido-io/fix-besu
Fix Besu genesis
2 parents 3679daf + 3f228c1 commit f608bd5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/blockchain/ethereum/besu/genesis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func CreateGenesis(addresses []string, blockPeriod int, chainID int64) *Genesis
7979
alloc[address] = &Alloc{
8080
Balance: "0x200000000000000000000000000000000000000000000000000000000000000",
8181
}
82-
extraData += extraData
82+
extraData += address
8383
}
8484
extraData = strings.ReplaceAll(fmt.Sprintf("%-236s", extraData), " ", "0")
8585
return &Genesis{

internal/blockchain/ethereum/besu/genesis_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func TestCreateGenesis(t *testing.T) {
4848
alloc[address] = &Alloc{
4949
Balance: "0x200000000000000000000000000000000000000000000000000000000000000",
5050
}
51-
extraData += extraData
51+
extraData += address
5252
}
5353
extraData = strings.ReplaceAll(fmt.Sprintf("%-236s", extraData), " ", "0")
5454
expectedGenesis := &Genesis{

0 commit comments

Comments
 (0)