From c55d986184e462f0ef59f5942d61cae1c2a1824a Mon Sep 17 00:00:00 2001 From: Yuanmao Zhu Date: Thu, 8 Aug 2024 23:38:27 -0400 Subject: [PATCH] add config tx Signed-off-by: Yuanmao Zhu --- src/agent/sdk-agent/internal/routers/channel.go | 4 ++++ src/agent/sdk-agent/internal/server/server.go | 1 + 2 files changed, 5 insertions(+) diff --git a/src/agent/sdk-agent/internal/routers/channel.go b/src/agent/sdk-agent/internal/routers/channel.go index fe7b01756..885fedc7e 100644 --- a/src/agent/sdk-agent/internal/routers/channel.go +++ b/src/agent/sdk-agent/internal/routers/channel.go @@ -27,3 +27,7 @@ func CreateChannel(c *gin.Context) { func UpdateChannel(c *gin.Context) { c.IndentedJSON(http.StatusOK, nil) } + +func SignConfigTx(c *gin.Context) { + c.IndentedJSON(http.StatusOK, nil) +} diff --git a/src/agent/sdk-agent/internal/server/server.go b/src/agent/sdk-agent/internal/server/server.go index fc46873b0..bec953033 100644 --- a/src/agent/sdk-agent/internal/server/server.go +++ b/src/agent/sdk-agent/internal/server/server.go @@ -18,5 +18,6 @@ func (s *server) Start() { grouter.GET("/channels", routers.GetChannel) grouter.PUT("/channels", routers.UpdateChannel) grouter.POST("/channels", routers.CreateChannel) + grouter.POST("/configtx", routers.SignConfigTx) grouter.Run("localhost:8080") }