Skip to content

Commit 8640e67

Browse files
gupadhyayaGanesha Upadhyaya
and
Ganesha Upadhyaya
authored
update rollkit to use go-cnc v0.3.0 (cosmos#794)
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>
1 parent 1104628 commit 8640e67

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

da/celestia/celestia.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (c *DataAvailabilityLayerClient) SubmitBlock(ctx context.Context, block *ty
7575
}
7676
}
7777

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

8080
if err != nil {
8181
return da.ResultSubmitBlock{

da/celestia/mock/server.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ func (s *Server) Stop() {
7070

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

7777
return mux
7878
}
7979

8080
func (s *Server) submit(w http.ResponseWriter, r *http.Request) {
81-
req := cnc.SubmitPFDRequest{}
81+
req := cnc.SubmitPFBRequest{}
8282
err := json.NewDecoder(r.Body).Decode(&req)
8383
if err != nil {
8484
s.writeError(w, err)

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/rollkit/rollkit
33
go 1.18
44

55
require (
6-
github.com/celestiaorg/go-cnc v0.2.0
6+
github.com/celestiaorg/go-cnc v0.3.0
77
github.com/celestiaorg/go-header v0.1.0
88
github.com/dgraph-io/badger/v3 v3.2103.5
99
github.com/go-kit/kit v0.12.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtE
109109
github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs=
110110
github.com/buger/jsonparser v0.0.0-20181115193947-bf1c66bbce23/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s=
111111
github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ=
112-
github.com/celestiaorg/go-cnc v0.2.0 h1:QBcWz1v6341r+5Urbr/eaCm9S8D2wwEwielKcwBc1Z4=
113-
github.com/celestiaorg/go-cnc v0.2.0/go.mod h1:CZBVUhQnJnAVcfQnnEAqREF+PNWr97m/BhJ5fp1K44Q=
112+
github.com/celestiaorg/go-cnc v0.3.0 h1:eAVPNHGpx+2sBO7NZyQ1+VW8rzf6W4FQDlSq6aqSTsM=
113+
github.com/celestiaorg/go-cnc v0.3.0/go.mod h1:zYzvHudSd1iNPuHBMyvZ1YvWou5aT9JXgtch9Tkaf70=
114114
github.com/celestiaorg/go-header v0.1.0 h1:K/atYWwZ/bjMLJ/Apy0dokbREa8BGgxUMiMjhRHlF4E=
115115
github.com/celestiaorg/go-header v0.1.0/go.mod h1:AR7GQ1519TDLEFxRC0rt9emq1IvhU+Nf+1Ufe3JI3nA=
116116
github.com/celestiaorg/go-libp2p-messenger v0.1.0 h1:rFldTa3ZWcRRn8E2bRWS94Qp1GFYXO2a0uvqpIey1B8=

0 commit comments

Comments
 (0)