fixed bizarre bug with ?-

This commit is contained in:
timlucmiptev 2021-03-01 12:15:03 +02:00 committed by ixv
parent b50144b1a1
commit 26dd2d9b02
3 changed files with 9 additions and 6 deletions

View File

@ -11,8 +11,8 @@ Runs the full node API services.
## Start Agents and set XPUBs
On `~zod`. Uses "abandon abandon..." mnemonic
```
=network %main
=network %testnet
=network %main
|commit %home
|start %btc-provider
|start %btc-wallet

View File

@ -153,14 +153,14 @@
++ handle-action
|= act=action
^- (quip card _state)
?. ?|(connected.host-info =(-.act %ping))
?. ?|(connected.host-info ?=(%ping -.act))
~& >>> "Not connected to RPC"
[~[(send-update [%| %not-connected 500])] state]
?: ?&(?=(%check-network -.act) ?!(=(network.act network.host-info)))
%- (slog ~[leaf+"network mismatch with client {<src.bowl>}"])
(kick-client src.bowl)
=/ ract=action:rpc-types
?+ -.act ~|("Invalid action" !!)
?- -.act :: ~|("Invalid action" !!)
%address-info
[%get-address-info address.act]
::
@ -172,6 +172,9 @@
::
%broadcast-tx
[%broadcast-tx rawtx.act]
::
%ping
[%get-block-info ~]
==
[~[(req-card act ract)] state]
::

View File

@ -1,4 +1,4 @@
/- *bitcoin, *resource
/- *bitcoin, resource
|%
+$ host-info
$: api-url=@t
@ -11,14 +11,14 @@
$: public=?
kids=?
users=(set ship)
groups=(set resource)
groups=(set resource:resource)
==
::
+$ whitelist-target
$% [%public ~]
[%kids ~]
[%users users=(set ship)]
[%groups groups=(set resource)]
[%groups groups=(set resource:resource)]
==
+$ command
$% [%set-credentials api-url=@t =network]