File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1577,8 +1577,7 @@ func setMiner(ctx *cli.Context, cfg *miner.Config) {
15771577 cfg .Recommit = ctx .Duration (MinerNewPayloadTimeoutFlag .Name )
15781578 }
15791579 if ctx .IsSet (MinerMaxBlobsFlag .Name ) {
1580- maxBlobs := ctx .Int (MinerMaxBlobsFlag .Name )
1581- cfg .MaxBlobsPerBlock = & maxBlobs
1580+ cfg .MaxBlobsPerBlock = ctx .Int (MinerMaxBlobsFlag .Name )
15821581 }
15831582}
15841583
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ type Config struct {
4848 GasCeil uint64 // Target gas ceiling for mined blocks.
4949 GasPrice * big.Int // Minimum gas price for mining a transaction
5050 Recommit time.Duration // The time interval for miner to re-create mining work.
51- MaxBlobsPerBlock * int // Maximum number of blobs per block (unset uses protocol default)
51+ MaxBlobsPerBlock int // Maximum number of blobs per block (0 for unset uses protocol default)
5252}
5353
5454// DefaultConfig contains default settings for miner.
Original file line number Diff line number Diff line change 4747// Users can specify the maximum number of blobs per block if necessary.
4848func (miner * Miner ) maxBlobsPerBlock (time uint64 ) int {
4949 maxBlobs := eip4844 .MaxBlobsPerBlock (miner .chainConfig , time )
50- if miner .config .MaxBlobsPerBlock != nil {
51- maxBlobs = * miner .config .MaxBlobsPerBlock
50+ if miner .config .MaxBlobsPerBlock != 0 {
51+ maxBlobs = miner .config .MaxBlobsPerBlock
5252 }
5353 return maxBlobs
5454}
You can’t perform that action at this time.
0 commit comments