What addr to use for reflector wallet.Connect #59

Open
opened 2022-06-03 22:56:34 +02:00 by Lukasz825700516 · 0 comments
Lukasz825700516 commented 2022-06-03 22:56:34 +02:00 (Migrated from github.com)

Hi, I wanted to use LBRY through golang, but the lack of good documentation makes it really hard for me.

What address should I use to connect with wallet serwer? I tried using these urls:
7a8d5da0e8/lbry/conf.py (L689)
but I get panic dial tcp 147.135.1.20:50001: i/o timeout

My code:

	var r *pb.Output
	var err error

	addr := []string{
		"spv11.lbry.com:50001",
		"spv12.lbry.com:50001",
		"spv13.lbry.com:50001",
		"spv14.lbry.com:50001",
		"spv15.lbry.com:50001",
		"spv16.lbry.com:50001",
		"spv17.lbry.com:50001",
		"spv18.lbry.com:50001",
		"spv19.lbry.com:50001",
	}
	w := wallet.NewNode()
	defer w.Shutdown()

	if err = w.Connect(addr, nil); err != nil {
		panic(err)
	}

Hi, I wanted to use LBRY through golang, but the lack of good documentation makes it really hard for me. What address should I use to connect with wallet serwer? I tried using these urls: https://github.com/lbryio/lbry-sdk/blob/7a8d5da0e8df0244bafbfd03acd4403557608dcb/lbry/conf.py#L689 but I get panic `dial tcp 147.135.1.20:50001: i/o timeout` My code: ```go var r *pb.Output var err error addr := []string{ "spv11.lbry.com:50001", "spv12.lbry.com:50001", "spv13.lbry.com:50001", "spv14.lbry.com:50001", "spv15.lbry.com:50001", "spv16.lbry.com:50001", "spv17.lbry.com:50001", "spv18.lbry.com:50001", "spv19.lbry.com:50001", } w := wallet.NewNode() defer w.Shutdown() if err = w.Connect(addr, nil); err != nil { panic(err) } ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/reflector.go#59
No description provided.