Skip to content

Commit

Permalink
Update sssc_node.go
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 7, 2024
1 parent 7af4ca4 commit 05ade53
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion consensus/sssc/advanced/sssc_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,17 @@ func main() {

db, err := badger.Open("sssc.db")
if err != nil {
log
log.Fatalf("failed to open badger db: %v", err)
}
defer db.Close()

srv := grpc.NewServer()
pb.RegisterSSSCNodeServer(srv, &SSSCNode{
shardID: "shard-1",
nodes: make(map[string]*grpc.ClientConn),
db: db,
})

log.Println("SSSC node listening on port 50053")
srv.Serve(lis)
}

0 comments on commit 05ade53

Please sign in to comment.