Skip to content

Commit

Permalink
bring blob reader
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed Mar 11, 2024
1 parent d1f96a0 commit 9d8353e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cmd/nitro/nitro.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,17 +372,17 @@ func mainImpl() int {
if err != nil {
log.Crit("failed to get L1 headerreader", "err", err)
}
// if !l1Reader.IsParentChainArbitrum() && !nodeConfig.Node.Dangerous.DisableBlobReader {
// if nodeConfig.ParentChain.BlobClient.BeaconUrl == "" {
// flag.Usage()
// log.Crit("a beacon chain RPC URL is required to read batches, but it was not configured (CLI argument: --parent-chain.blob-client.beacon-url [URL])")
// }
// blobClient, err := headerreader.NewBlobClient(nodeConfig.ParentChain.BlobClient, l1Client)
// if err != nil {
// log.Crit("failed to initialize blob client", "err", err)
// }
// blobReader = blobClient
// }
if !l1Reader.IsParentChainArbitrum() && !nodeConfig.Node.Dangerous.DisableBlobReader {
if nodeConfig.ParentChain.BlobClient.BeaconUrl == "" {
flag.Usage()
log.Crit("a beacon chain RPC URL is required to read batches, but it was not configured (CLI argument: --parent-chain.blob-client.beacon-url [URL])")
}
blobClient, err := headerreader.NewBlobClient(nodeConfig.ParentChain.BlobClient, l1Client)
if err != nil {
log.Crit("failed to initialize blob client", "err", err)
}
blobReader = blobClient
}
}

if nodeConfig.Node.Staker.OnlyCreateWalletContract {
Expand Down

0 comments on commit 9d8353e

Please sign in to comment.