leave subscription when provider changes

This commit is contained in:
timlucmiptev 2021-02-15 15:59:14 +04:00 committed by ixv
parent 5ec7e7f579
commit 15d598f080
2 changed files with 3 additions and 5 deletions

View File

@ -61,7 +61,7 @@ Using 1 confirmation for testing.
`~dopzod`
```
:btc-wallet|command [%req-pay-address ~zod 80.000 feyb=100]
:btc-wallet|command [%req-pay-address ~zod 60.000 feyb=100]
```
### Check State on ~zod/~dopzod

View File

@ -1,4 +1,3 @@
:: btc-wallet
::
:: Scrys
@ -137,13 +136,12 @@
?- -.comm
%set-provider
=* sub-card
:* %pass /set-provider/[(scot %da now.bowl)]
:* %pass /set-provider/[(scot %p provider.comm)]
%agent [provider.comm %btc-provider] %watch /clients
==
:_ state(prov [~ provider.comm %.n])
?~ prov ~[sub-card]
~& >>> "%leave"
:~ [%pass /clients %agent [host.u.prov %btc-provider] %leave ~]
:~ [%pass /set-provider/[(scot %p host.u.prov)] %agent [host.u.prov %btc-provider] %leave ~]
sub-card
==
::