-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aio: Unable to reconnect another node #164
Comments
biobdeveloper
changed the title
Aio: Unable to reconnect another node in aio
Aio: Unable to reconnect another node
May 27, 2020
bitphage
added a commit
to bitshares/python-bitshares
that referenced
this issue
May 28, 2020
Why this is a wrong way:
Correct way should be bitshares_instance = BitShares(node="wss://node_1")
await bitshares_instance.connect()
bitshares_instance.rpc.url = "wss://node_2"
await bitshares_instance.rpc.connect() But I wonder why you're not using multiple nodes and nodes = ['wss://node_1', 'wss://node_2']
bitshares_instance = BitShares(node=nodes)
await bitshares_instance.connect()
await bitshares_instance.rpc.next() # switch node |
But if I need to switch determined node, what I need to do? Seems like .rpc.next() just iterate over list, without choosing node by user |
Then use "correct way" solution. |
xeroc
pushed a commit
to bitshares/python-bitshares
that referenced
this issue
Oct 7, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I try to change node in connected aio.bitshares instance, but receive an error:
The text was updated successfully, but these errors were encountered: