Skip to content

Commit

Permalink
update rollkit to use go-cnc v0.3.0 (cosmos#794)
Browse files Browse the repository at this point in the history
DA block submission was broken as from go-cnc v0.3.0 we need to change
to "PFB" instead of "PFD"

---------

Co-authored-by: Ganesha Upadhyaya <gupadhyaya@Ganeshas-MacBook-Pro-2.local>
  • Loading branch information
gupadhyaya and Ganesha Upadhyaya authored Mar 23, 2023
1 parent 1104628 commit 8640e67
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion da/celestia/celestia.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (c *DataAvailabilityLayerClient) SubmitBlock(ctx context.Context, block *ty
}
}

txResponse, err := c.client.SubmitPFD(ctx, c.namespaceID, blob, c.config.Fee, c.config.GasLimit)
txResponse, err := c.client.SubmitPFB(ctx, c.namespaceID, blob, c.config.Fee, c.config.GasLimit)

if err != nil {
return da.ResultSubmitBlock{
Expand Down
4 changes: 2 additions & 2 deletions da/celestia/mock/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ func (s *Server) Stop() {

func (s *Server) getHandler() http.Handler {
mux := mux2.NewRouter()
mux.HandleFunc("/submit_pfd", s.submit).Methods(http.MethodPost)
mux.HandleFunc("/submit_pfb", s.submit).Methods(http.MethodPost)
mux.HandleFunc("/namespaced_shares/{namespace}/height/{height}", s.shares).Methods(http.MethodGet)
mux.HandleFunc("/namespaced_data/{namespace}/height/{height}", s.data).Methods(http.MethodGet)

return mux
}

func (s *Server) submit(w http.ResponseWriter, r *http.Request) {
req := cnc.SubmitPFDRequest{}
req := cnc.SubmitPFBRequest{}
err := json.NewDecoder(r.Body).Decode(&req)
if err != nil {
s.writeError(w, err)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/rollkit/rollkit
go 1.18

require (
github.com/celestiaorg/go-cnc v0.2.0
github.com/celestiaorg/go-cnc v0.3.0
github.com/celestiaorg/go-header v0.1.0
github.com/dgraph-io/badger/v3 v3.2103.5
github.com/go-kit/kit v0.12.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtE
github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs=
github.com/buger/jsonparser v0.0.0-20181115193947-bf1c66bbce23/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s=
github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ=
github.com/celestiaorg/go-cnc v0.2.0 h1:QBcWz1v6341r+5Urbr/eaCm9S8D2wwEwielKcwBc1Z4=
github.com/celestiaorg/go-cnc v0.2.0/go.mod h1:CZBVUhQnJnAVcfQnnEAqREF+PNWr97m/BhJ5fp1K44Q=
github.com/celestiaorg/go-cnc v0.3.0 h1:eAVPNHGpx+2sBO7NZyQ1+VW8rzf6W4FQDlSq6aqSTsM=
github.com/celestiaorg/go-cnc v0.3.0/go.mod h1:zYzvHudSd1iNPuHBMyvZ1YvWou5aT9JXgtch9Tkaf70=
github.com/celestiaorg/go-header v0.1.0 h1:K/atYWwZ/bjMLJ/Apy0dokbREa8BGgxUMiMjhRHlF4E=
github.com/celestiaorg/go-header v0.1.0/go.mod h1:AR7GQ1519TDLEFxRC0rt9emq1IvhU+Nf+1Ufe3JI3nA=
github.com/celestiaorg/go-libp2p-messenger v0.1.0 h1:rFldTa3ZWcRRn8E2bRWS94Qp1GFYXO2a0uvqpIey1B8=
Expand Down

0 comments on commit 8640e67

Please sign in to comment.