add eth-status scry to get latest block

This commit is contained in:
Philip Monk 2019-01-15 15:50:51 -08:00
parent 155f82b87f
commit 5b192b7a65
No known key found for this signature in database
GPG Key ID: B66E1F02604E44EC

View File

@ -2377,6 +2377,12 @@
:^ ~ ~ %noun
!> ^- (list ship)
(~(saxo of [our now eny] lex) u.who)
::
%eth-status
?. ?=(~ tyl) [~ ~]
:^ ~ ~ %noun !>
^- [latest-block=@ud source=(each ship node-src)]
[latest-block.etn.lex source.etn.lex]
::
%snap
?. ?=(~ tyl) [~ ~]