Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion consensus/misc/eip4844/eip4844.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func VerifyEIP4844Header(config *params.ChainConfig, parent, header *types.Heade
}

// BEP-657: non-eligible blocks must have no blob gas used
if config.IsInBSC() && !IsBlobEligibleBlock(config, header.Number.Uint64(), header.Time) {
if !IsBlobEligibleBlock(config, header.Number.Uint64(), header.Time) {
if *header.BlobGasUsed != 0 {
return fmt.Errorf("blob transactions not allowed in block %d (N %% %d != 0)", header.Number.Uint64(), params.BlobEligibleBlockInterval)
}
Expand Down
8 changes: 4 additions & 4 deletions tests/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -723,15 +723,15 @@ var Forks = map[string]*params.ChainConfig{
}

var bpo1BlobConfig = &params.BlobConfig{
Target: 9,
Max: 14,
UpdateFraction: 8832827,
Target: 10,
Max: 15,
UpdateFraction: 8346193,
}

var bpo2BlobConfig = &params.BlobConfig{
Target: 14,
Max: 21,
UpdateFraction: 13739630,
UpdateFraction: 11684671,
}

// AvailableForks returns the set of defined fork names
Expand Down