shrub/pkg/arvo/gen/azimuth-block.hoon

15 lines
355 B
Plaintext
Raw Normal View History

2019-12-04 03:41:29 +03:00
:: Print most recently seen ethereum block
::
:: Note we require 30 confirmation blocks, so we should expect to have
:: processed only those blocks which are this number minus 30.
::
:- %say
2020-05-19 23:53:55 +03:00
|= [[now=@da @ our=@p ^] *]
:- %tang
2020-05-19 23:53:55 +03:00
=; block=@ud
[leaf+(scow %ud block)]~
.^ @ud
%gx
/(scot %p our)/eth-watcher/(scot %da now)/block/azimuth/noun
2020-05-19 23:53:55 +03:00
==