Skip to content

Commit 31021e5

Browse files
committed
Fix 4844 fork transition header bug
1 parent 9ce143a commit 31021e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

miner/worker.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,8 @@ func (w *worker) prepareWork(genParams *generateParams) (*environment, error) {
10111011
}
10121012
}
10131013
// Initialize the prestate excess_blobs field used during state transition
1014-
if w.chainConfig.IsSharding(parent.Number()) {
1014+
if w.chainConfig.IsSharding(header.Number) {
1015+
// TODO(EIP-4844): Unit test this
10151016
var excessBlobs uint64
10161017
if parentExcessBlobs := parent.Header().ExcessBlobs; parentExcessBlobs != nil {
10171018
excessBlobs = *parentExcessBlobs

0 commit comments

Comments
 (0)