Skip to content

Commit

Permalink
Merge branch 'firehose-fh2.3' into release/geth-1.x-fh2.3
Browse files Browse the repository at this point in the history
# Conflicts:
#	core/genesis.go
  • Loading branch information
maoueh committed Sep 20, 2023
2 parents e138bfe + f2f6b51 commit 8b9bba6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,10 @@ func (ga *GenesisAlloc) flush(db ethdb.Database, triedb *trie.Database, blockhas

// Firehose: We do not log those as we are going to trace the genesis block on Blockchain start, so there is no
// need to log the genesis block creation.

for addr, account := range *ga {
if account.Balance != nil {
statedb.AddBalance(addr, account.Balance, false, firehose.NoOpContext, firehose.BalanceChangeReason("genesis_balance"))
statedb.AddBalance(addr, account.Balance, false, firehose.NoOpContext, firehose.IgnoredBalanceChangeReason)
}
statedb.SetCode(addr, account.Code, firehose.NoOpContext)
statedb.SetNonce(addr, account.Nonce, firehose.NoOpContext)
Expand Down

0 comments on commit 8b9bba6

Please sign in to comment.