catches error with no endpoint given

This commit is contained in:
timlucmiptev 2020-10-20 14:15:17 +03:00 committed by ixv
parent c962435265
commit 5eb184cc53
2 changed files with 8 additions and 9 deletions

View File

@ -42,18 +42,17 @@
::
?> ?|((team:title our.bowl src.bowl) (is-client:hc src.bowl))
=^ cards state
?+ mark (on-poke:def mark vase)
%btc-provider-action
:: TODO: check whether endpoint/credentials are set
(handle-action:hc !<(action vase))
::
%btc-provider-command
?: ?=(%btc-provider-command mark)
?> (team:title our.bowl src.bowl)
(handle-command:hc !<(command vase))
~| "Not connected to RPC endpoints"
?+ mark (on-poke:def mark vase)
%btc-provider-action
?> connected.status
(handle-action:hc !<(action vase))
::
%btc-provider-rpc-action
?> (team:title our.bowl src.bowl)
:: TODO: check whether endpoint/credentials are set
?> connected.status
(handle-rpc-action !<(rpc-action vase))
==
[cards this]

View File

@ -27,7 +27,7 @@ abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon
```
### Getting BIP84 Address from `xpub`
```
```g
(~(address bip84:b %main xpub))
```