mirror of
https://github.com/urbit/shrub.git
synced 2024-12-26 05:23:35 +03:00
Merge pull request #3812 from urbit/ted/no-impostor-comets
no more impostor comets
This commit is contained in:
commit
e8e970d0ea
@ -1046,6 +1046,9 @@
|
|||||||
++ on-hear-open
|
++ on-hear-open
|
||||||
|= [=lane =packet ok=?]
|
|= [=lane =packet ok=?]
|
||||||
^+ event-core
|
^+ event-core
|
||||||
|
:: assert the comet can't pretend to be a moon or other address
|
||||||
|
::
|
||||||
|
?> ?=(%pawn (clan:title sndr.packet))
|
||||||
:: if we already know .sndr, ignore duplicate attestation
|
:: if we already know .sndr, ignore duplicate attestation
|
||||||
::
|
::
|
||||||
=/ ship-state (~(get by peers.ames-state) sndr.packet)
|
=/ ship-state (~(get by peers.ames-state) sndr.packet)
|
||||||
|
@ -9179,6 +9179,10 @@
|
|||||||
|- ^- seed:able:jael
|
|- ^- seed:able:jael
|
||||||
=/ cub=acru:ames (pit:nu:crub:crypto 512 eny)
|
=/ cub=acru:ames (pit:nu:crub:crypto 512 eny)
|
||||||
=/ who=ship `@`fig:ex:cub
|
=/ who=ship `@`fig:ex:cub
|
||||||
|
:: disallow 64-bit or smaller addresses
|
||||||
|
::
|
||||||
|
?. ?=(%pawn (clan:title who))
|
||||||
|
$(eny +(eny))
|
||||||
?: (~(has in stars) (^sein:title who))
|
?: (~(has in stars) (^sein:title who))
|
||||||
[who 1 sec:ex:cub ~]
|
[who 1 sec:ex:cub ~]
|
||||||
$(eny +(eny))
|
$(eny +(eny))
|
||||||
|
Loading…
Reference in New Issue
Block a user