Commit cfcd3fab authored by vicotor's avatar vicotor

update node

parent 49f7023f
......@@ -168,6 +168,9 @@ func (n *OpNode) init(ctx context.Context, cfg *Config) error {
return fmt.Errorf("failed to init the P2P stack: %w", err)
}
// Only expose the server at the end, ensuring all RPC backend components are initialized.
if err := n.initGrpcServer(cfg); err != nil {
return fmt.Errorf("failed to init the gRPC server: %w", err)
}
if err := n.initRPCServer(cfg); err != nil {
return fmt.Errorf("failed to init the RPC server: %w", err)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment