Skip to content

Commit

Permalink
Merge pull request #2747 from OffchainLabs/log-dasclient-legacystoreu…
Browse files Browse the repository at this point in the history
…sage

Log from batch poster for which das backends are using chunked vs legacy store
  • Loading branch information
tsahee authored Oct 21, 2024
2 parents 5f24df4 + 1a1e179 commit d3fa9a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions das/dasRpcClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func (c *DASRPCClient) Store(ctx context.Context, message []byte, timeout uint64
var startChunkedStoreResult StartChunkedStoreResult
if err := c.clnt.CallContext(ctx, &startChunkedStoreResult, "das_startChunkedStore", hexutil.Uint64(timestamp), hexutil.Uint64(nChunks), hexutil.Uint64(c.chunkSize), hexutil.Uint64(totalSize), hexutil.Uint64(timeout), hexutil.Bytes(startReqSig)); err != nil {
if strings.Contains(err.Error(), "the method das_startChunkedStore does not exist") {
log.Info("Legacy store is used by the DAS client", "url", c.url)
return c.legacyStore(ctx, message, timeout)
}
return nil, err
Expand Down

0 comments on commit d3fa9a7

Please sign in to comment.