Skip to content

Commit

Permalink
op-node: log namespaced data details (#94)
Browse files Browse the repository at this point in the history
* op-node: log namespaced data details

* op-node: log hex
  • Loading branch information
tuxcanfly authored May 23, 2023
1 parent 8f53660 commit 5b97ddc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions op-node/rollup/derive/calldata_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"context"
"encoding/binary"
"encoding/hex"
"errors"
"fmt"
"io"
Expand Down Expand Up @@ -144,11 +145,13 @@ func DataFromEVMTransactions(config *rollup.Config, daCfg *rollup.DAConfig, batc
log.Warn("unable to decode data pointer", "index", j, "err", err)
continue
}
log.Warn("requesting celestia namespaced data", "namespace", hex.EncodeToString(daCfg.NamespaceId[:]), "height", height)
data, err := daCfg.Client.NamespacedData(context.Background(), daCfg.NamespaceId, uint64(height))
if err != nil {
log.Warn("unable to retrieve data from da", "err", err)
return nil, err
}
log.Warn("retrieved data", "data", hex.EncodeToString(data[index]))
out = append(out, data[index])
} else {
out = append(out, tx.Data())
Expand Down

0 comments on commit 5b97ddc

Please sign in to comment.