Skip to content

Commit

Permalink
fix: beacon http serve config
Browse files Browse the repository at this point in the history
  • Loading branch information
xrypto.c committed Jul 12, 2024
1 parent ec30e86 commit af30147
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions blob/zkblobsender/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ import (
"crypto/ecdsa"
"errors"
"fmt"
blobjsonrpc "github.com/0xPolygonHermez/zkevm-node/blob/jsonrpc"
"github.com/gorilla/mux"
"net"
"net/http"
"os"
"time"

blobjsonrpc "github.com/0xPolygonHermez/zkevm-node/blob/jsonrpc"
"github.com/gorilla/mux"

dataCommitteeClient "github.com/0xPolygon/cdk-data-availability/client"
"github.com/0xPolygonHermez/zkevm-node"
"github.com/0xPolygonHermez/zkevm-node/blob"
Expand Down Expand Up @@ -193,7 +194,7 @@ func start(cliCtx *cli.Context) error {
log.Fatal(err)
}

seqSender.Start(cliCtx.Context)
go seqSender.Start(cliCtx.Context)

bs := blobjsonrpc.NewBlobServer(st, seqSender.blobDB)

Expand All @@ -202,7 +203,7 @@ func start(cliCtx *cli.Context) error {
r.Handle("/eth/v1/beacon/blob_sidecars/{block_id}", http.HandlerFunc(bs.HandleGetBlobSidecars))
r.Handle("/eth/v2/beacon/blocks/{block_id}", http.HandlerFunc(bs.HandleGetBlocks))

address := fmt.Sprintf("%s:%d", "localhost", 6666)
address := fmt.Sprintf("%s:%d", "0.0.0.0", 6666)

lis, err := net.Listen("tcp", address)
if err != nil {
Expand Down

0 comments on commit af30147

Please sign in to comment.