mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-12 15:01:38 +03:00
leave subscription when provider changes
This commit is contained in:
parent
5ec7e7f579
commit
15d598f080
2
DEMO.md
2
DEMO.md
@ -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
|
||||
|
@ -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
|
||||
==
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user