Skip to content

Commit

Permalink
provide empty sidecar value for export
Browse files Browse the repository at this point in the history
Signed-off-by: Pranay Valson <[email protected]>
  • Loading branch information
noslav committed Mar 27, 2024
1 parent 1004f9b commit eec905c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/types/block_export.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ func (tx *TransactionForExport) ExportTx(chainConfig *params.ChainConfig, blockN
txData := tx.inner

if inner_tx.Type() == BlobTxType {
blobtx, _ := tx.inner.(*BlobTx)
// blobtx, _ := tx.inner.(*BlobTx)
// blobtx.blobGas()
return &TransactionExportRLP{
AccountNonce: txData.nonce(),
Price: txData.effectiveGasPrice(&big.Int{}, baseFee),
Expand All @@ -130,7 +131,7 @@ func (tx *TransactionForExport) ExportTx(chainConfig *params.ChainConfig, blockN
BlobFeeCap: inner_tx.BlobGasFeeCap(),
BlobHashes: inner_tx.BlobHashes(),
BlobGas: inner_tx.BlobGas(),
BlobTxSidecar: blobtx.Sidecar,
BlobTxSidecar: inner_tx.BlobTxSidecar(),
}
} else {
return &TransactionExportRLP{
Expand Down

0 comments on commit eec905c

Please sign in to comment.