forked from chris-belcher/electrum-personal-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle losing connection to bitcoin node
Previously if the json-rpc connection to the bitcoin node was lost then the server would crash. Now it will close the Electrum connection and refuse all new connections until it reestablishes a link to the node. Electrum will then display a red dot as an indication that something is wrong, and so the server operator can be reminded to restart the node. Also, the json-rpc functions will no longer cache the username and password values obtained from the cookie file. Then if the node is restarted and generates a new cookie then the server will correctly use the new authentication information.
- Loading branch information
1 parent
941fce5
commit dce6bff
Showing
2 changed files
with
94 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters