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
3 changes: 2 additions & 1 deletion node/derivation/batch_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ func (bi *BatchInfo) ParseBatch(batch geth.RPCRollupBatch) error {
bi.version = uint64(batch.Version)
var txPayload []byte
for _, blob := range batch.Sidecar.Blobs {
data, err := types.DecodeRawTxPayload(&blob)
blobCopy := blob
data, err := types.DecodeRawTxPayload(&blobCopy)
if err != nil {
return err
}
Expand Down
3 changes: 2 additions & 1 deletion node/derivation/derivation.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ func (d *Derivation) derive(rollupData *BatchInfo) (*eth.Header, error) {
var lastHeader *eth.Header
for _, chunk := range rollupData.chunks {
for _, blockData := range chunk.blockContextes {
blockData.SafeL2Data.BatchHash = &rollupData.batchHash
batchHash := rollupData.batchHash
blockData.SafeL2Data.BatchHash = &batchHash
latestBlockNumber, err := d.l2Client.BlockNumber(context.Background())
if err != nil {
return nil, fmt.Errorf("get derivation geth block number error:%v", err)
Expand Down