Skip to content

Conversation

@avalonche
Copy link
Contributor

No description provided.

@avalonche avalonche force-pushed the update-flashblock-sig branch from c4736de to 72fa569 Compare December 8, 2025 17:47
@avalonche avalonche force-pushed the update-flashblock-sig branch from 72fa569 to 511c753 Compare December 11, 2025 21:48
}

return true
return tx.From().Cmp(bi.cfg.builderAddr) == 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue:

From() is for deposit txes only. it panics on the "normal" ones:

// From is an OP-Stack addition to the Transaction type to easily get a deposit
// transaction sender address.
// It can be difficult to create a correct signer just to extract the From field
// from a deposit transaction if the chain ID is not known.
func (tx *Transaction) From() common.Address {
	if tx.Type() != DepositTxType {
		panic("From() called on non-deposit transaction")
	}
	return tx.inner.(interface{ from() common.Address }).from()
}

binary.BigEndian.PutUint64(xfamBytes, transformedXfam)
binary.BigEndian.PutUint64(tdAttributesBytes, transformedTdAttributes)
binary.BigEndian.PutUint64(xfamBytes, xfam)
binary.BigEndian.PutUint64(tdAttributesBytes, tdAttributes)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question:

what happens here (and why)? could you please add to the PR description?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants