Merge pull request #5545 from urbit/ames/alien-ignore

ames: ignore missing peer-state on-publ-sponsor
This commit is contained in:
Philip Monk 2022-01-18 13:00:01 -07:00 committed by GitHub
commit 7cf5017897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1593,10 +1593,12 @@
?~ sponsor
~| %ames-lost-sponsor^our^ship !!
::
=/ =peer-state (got-peer-state ship)
=. sponsor.peer-state u.sponsor
::
=. peers.ames-state (~(put by peers.ames-state) ship %known peer-state)
=/ state=(unit peer-state) (get-peer-state ship)
?~ state
%- (slog leaf+"ames: missing peer-state, ignoring" ~)
event-core
=. sponsor.u.state u.sponsor
=. peers.ames-state (~(put by peers.ames-state) ship %known u.state)
event-core
:: +on-publ-full: handle new pki data for peer(s)
::