Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

op-batcher: invalid memory address or nil pointer dereference #12755

Open
claymega opened this issue Oct 31, 2024 · 0 comments
Open

op-batcher: invalid memory address or nil pointer dereference #12755

claymega opened this issue Oct 31, 2024 · 0 comments
Labels
A-op-batcher Area: op-batcher

Comments

@claymega
Copy link

claymega commented Oct 31, 2024

Bug Description

This Error occurs when calling RecordBlobBaseFee() while running the op-batcher.

The normal call is as follows:

	if tip.ExcessBlobGas != nil {
		blobFee := eip4844.CalcBlobFee(*tip.ExcessBlobGas)
		m.metr.RecordBlobBaseFee(blobFee)
	}

but panic call as follows :

        # xx/optimism/op-service/txmgr/txmgr.go:896

	m.metr.RecordTipCap(tip)
	m.metr.RecordBaseFee(baseFee)
	m.metr.RecordBlobBaseFee(blobFee)
func (t *TxMetrics) RecordBlobBaseFee(blobBaseFee *big.Int) {
	bff, _ := blobBaseFee.Float64()
	t.blobBaseFee.Set(bff)
}

Steps to Reproduce
Run an op-reth as the l2 execution client, and then run op-batcher

Expected behavior
image

Environment Information:

  • op-batcher v1.9.4
@geoknee geoknee added the A-op-batcher Area: op-batcher label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-op-batcher Area: op-batcher
Projects
None yet
Development

No branches or pull requests

2 participants