naive: fix test-rut nonce calculation

This commit is contained in:
drbeefsupreme 2021-08-17 13:37:43 -04:00
parent c8b62d8d2c
commit c11cd709d0
No known key found for this signature in database
GPG Key ID: B70D5683DE7F9EFC

View File

@ -939,7 +939,17 @@
:: wrong nonce and/or wrong owner do not increment nonce
:: TODO: fix nonce calculation for e.g. %spawn proxy for planets
=/ new-nonce ?: &(nonce.cur-event owner.cur-event)
+(cur-nonce)
?- rank.cur-event
%galaxy +(cur-nonce)
%star +(cur-nonce)
%planet ?- proxy.cur-event
%own +(cur-nonce)
%manage +(cur-nonce)
%spawn cur-nonce ::planets do not have a spawn proxy
%transfer +(cur-nonce)
%vote cur-nonce ::no vote proxy
==
==
cur-nonce
::
=/ state initial-state