We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d9d36a commit bfa0f75Copy full SHA for bfa0f75
1 file changed
src/cryptoadvance/specter/specter.py
@@ -67,9 +67,9 @@ def get_rpc(
67
if rpc is None:
68
# check if old rpc is still valid
69
return old_rpc if old_rpc.test_connection() else None
70
- # check if something have changed
71
- # and return new rpc if so
72
- if rpc.url == old_rpc.url:
+ # check if something has changed and return new rpc if so.
+ # RPC cookie will have a new password if bitcoind is restarted.
+ if rpc.url == old_rpc.url and rpc.password == old_rpc.password:
73
return old_rpc
74
else:
75
logger.info("rpc config have changed.")
0 commit comments