Skip to content

Commit

Permalink
fix: fix mined block sidecar issue;
Browse files Browse the repository at this point in the history
  • Loading branch information
galaio committed Mar 22, 2024
1 parent 8e6835b commit 18e5b60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ func (env *environment) copy() *environment {
cpy.txs = make([]*types.Transaction, len(env.txs))
copy(cpy.txs, env.txs)

cpy.sidecars = make(types.BlobSidecars, len(env.sidecars))
copy(cpy.sidecars, env.sidecars)
if env.sidecars != nil {
cpy.sidecars = make(types.BlobSidecars, len(env.sidecars))
copy(cpy.sidecars, env.sidecars)
}

return cpy
}
Expand Down

0 comments on commit 18e5b60

Please sign in to comment.