mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-10 10:05:09 +03:00
gall: in/exclude the nonce from the wire as needed
+ap-nuke was not including the nonce, but should. +ap-handle-peers was potentially including a zero nonce. (The latter shouldn't have been possible, but there's a bug in +load where sub-nonce.yoke gets initialized as 0 instead of 1.)
This commit is contained in:
parent
0a3f542fcc
commit
c2d77a5d47
@ -1204,8 +1204,8 @@
|
||||
~
|
||||
[%give %kick ~(tap in inbound-paths) ~]~
|
||||
%+ turn ~(tap by boat.yoke)
|
||||
|= [[=wire =ship =term] ? =path]
|
||||
[%pass wire %agent [ship term] %leave ~]
|
||||
|= [[=wire =dock] ? =path]
|
||||
[%pass (ap-nonce-wire wire dock) %agent dock %leave ~]
|
||||
=^ maybe-tang ap-core (ap-ingest ~ |.([will *agent]))
|
||||
ap-core
|
||||
:: +ap-from-internal: internal move to move.
|
||||
@ -1891,7 +1891,7 @@
|
||||
(ap-error %watch-not-unique tang) :: reentrant, maybe bad?
|
||||
$(moves t.moves)
|
||||
::
|
||||
=. p.move.move
|
||||
=? p.move.move !=(0 sub-nonce.yoke)
|
||||
(weld sys-wire [(scot %ud sub-nonce.yoke) sub-wire])
|
||||
%_ $
|
||||
moves t.moves
|
||||
|
Loading…
Reference in New Issue
Block a user