set state to disconnected on some errors

This commit is contained in:
timlucmiptev 2020-11-07 17:57:46 +02:00 committed by ixv
parent 65379105d0
commit b8c25c82e4
2 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@ The below requires norsyr's fix to `decompress-point` in order to work.
(don't need password if all run on localhost)
```
=rpc-pass '57a6662a8ddb792a557e9fe6d1a731f954db6c35e75a91e823ab20ea7a33585b'
:btc-provider|command [%set-credentials [rpc-url='http://localhost:8332' rpc-user='__cookie__' rpc-pass] [rpc-url='http://localhost:50002']]=rpc-pass '57a6662a8ddb792a557e9fe6d1a731f954db6c35e75a91e823ab20ea7a33585b'
:btc-provider|command [%set-credentials [rpc-url='http://localhost:8332' rpc-user='__cookie__' rpc-pass] [rpc-url='http://localhost:50002']]
:btc-provider|action [%watch-address [%bech32 'bc1q59u5epktervh6fxqay2dlph0wxu9hjnx6v8n66'']]

View File

@ -174,9 +174,9 @@
%400
[`[%bad-request status] state]
%401
[`[%no-auth status] state]
[`[%no-auth status] state(connected.host-info %.n)]
%502
[`[%not-connected status] state(connected.host-info %.y)]
[`[%not-connected status] state(connected.host-info %.n)]
%504
[`[%not-connected status] state(connected.host-info %.n)]
==