lbryio / reflector.go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What addr to use for reflector wallet.Connect

Lukasz825700516 opened this issue · comments

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:

	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)
	}