Merge pull request #5950 from urbit/m/gall-nonces-generator

gen: add +gall-nonces for reading all next nonces
This commit is contained in:
fang 2022-08-17 10:39:16 +02:00 committed by GitHub
commit a10fa82c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,10 @@
:: +gall-nonces: print %gall agent subscription nonces, highest-last
::
:- %say
|= [[now=@da eny=@uvJ bec=beak] ~ ~]
:- %noun
^- (list [dude:gall @ud])
%+ sort
%~ tap by
.^((map dude:gall @ud) %gf /(scot %p p.bec)//(scot %da now))
|=([[* a=@ud] [* b=@ud]] (lth a b))