Closed notpushkin closed 7 years ago
This would make KnownServers.select work correctly with custom ports.
KnownServers.select
Now:
>>> ServerInfo("electrum-ltc.petrkr.net", "electrum-ltc.petrkr.net", ... "t60001 s60002").protocols {'s60002', 't60001'} >>> ks = KnownServers() >>> ks.add_single("electrum-ltc.petrkr.net", "t60001 s60002") >>> ks.select(protocol="s") [] # no server ._.
Should be:
>>> ServerInfo("electrum-ltc.petrkr.net", "electrum-ltc.petrkr.net", ... "t60001 s60002").protocols {'s', 't'} >>> ks = KnownServers() >>> ks.add_single("electrum-ltc.petrkr.net", "t60001 s60002") >>> ks.select(protocol="s") [<ServerInfo electrum-ltc.petrkr.net ...>] # yay!
(I'll send a pull request tomorrow!)
(Unrelated; I've also made the CLI example into a full-fledged REPL here: https://github.com/iamale/estrato)
Please do make a PR for this change and nice REPL!
This would make
KnownServers.select
work correctly with custom ports.Now:
Should be: