Skip to content

Commit

Permalink
feat: enable LCDServer
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjukim committed Mar 16, 2021
2 parents 950dfad + abf27a3 commit 3f10ed4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ func main() {

return graphqlPort
}()
var lcdPort = func() int {
lcdPortSetting := os.Getenv("LCD_PORT")
lcdPort, err := strconv.Atoi(lcdPortSetting)
if err != nil {
return 1317
}

return lcdPort
}()

// init sentry
if sentryDsn != "" {
Expand Down Expand Up @@ -117,6 +126,7 @@ func main() {
}

mantle.Server(graphqlPort)
mantle.LCDServer(lcdPort)
mantle.Sync(app.SyncConfiguration{
TendermintEndpoint: endpoint,
SyncUntil: syncUntil,
Expand Down

0 comments on commit 3f10ed4

Please sign in to comment.