Skip to content

Commit

Permalink
fix(da): grpc da type fix (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
srene authored Jun 12, 2024
1 parent 15414d0 commit 2b5d21b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions da/da.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type Client string
// Data availability clients
const (
Mock Client = "mock"
Grpc Client = "grpc"
Celestia Client = "celestia"
Avail Client = "avail"
)
Expand Down
4 changes: 2 additions & 2 deletions da/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (m *DataAvailabilityLayerClient) Synced() <-chan struct{} {

// GetClientType returns client type.
func (d *DataAvailabilityLayerClient) GetClientType() da.Client {
return da.Celestia
return da.Grpc
}

// SubmitBatch proxies SubmitBatch request to gRPC server.
Expand All @@ -102,7 +102,7 @@ func (d *DataAvailabilityLayerClient) SubmitBatch(batch *types.Batch) da.ResultS
Message: resp.Result.Message,
},
SubmitMetaData: &da.DASubmitMetaData{
Client: da.Mock,
Client: da.Grpc,
Height: resp.Result.DataLayerHeight,
},
}
Expand Down

0 comments on commit 2b5d21b

Please sign in to comment.