yosoyubik
2e94a0d446
azimuth, dice: simplify index update
2021-11-24 15:31:59 +01:00
Philip Monk
ff63ffd1aa
azimuth: stop processing state in %watch
...
Also reprocess state in +on-load for ships which currently have
unprocessed state.
2021-11-17 10:22:27 -08:00
Philip Monk
45a8d12c35
Merge remote-tracking branch 'origin/philip/hotfix' into philip/hotfix
2021-11-17 10:00:49 -08:00
yosoyubik
9430c666d2
azimuth: update state on-watch
2021-11-17 12:40:06 +01:00
Philip Monk
a58db10b94
azimuth: don't crash if timer failed
2021-11-16 21:09:10 -08:00
Philip Monk
4b328a4fa7
azimuth: make +run-logs tail-recursive
...
Also kick the call to +mule out of the loop. By uncommenting the
diagnostics in u3m_fall, I measured that running through the 290k events
the azimuth snapshot required this much memory:
Head recursive, +mule in: 1.1GB
Head recursive, +mule out: 780MB
Tail recursive, +mule in: 700MB
Tail recursive, +mule out: 70MB
So this commit chooses the last one. The most delicate part is making
sure the effects are the right order; this uses the usual idiom.
Kicking +mule out of the loop is okay because lib/naive should never
fail, and if it does then azimuth shouldn't advance until an out-of-band
solution is decided.
Addresses #5431
2021-11-16 20:03:20 -08:00
yosoyubik
ed2d9bb482
Merge remote-tracking branch 'origin/philip/roller' into naive/roller
2021-11-10 18:44:25 +01:00
yosoyubik
da739d6e87
azimuth: add sponsorship scry
2021-11-10 18:39:43 +01:00
yosoyubik
e32b0a1956
roller: add sponsorship index
2021-11-10 17:46:22 +01:00
yosoyubik
856d8ed8fc
azimuth: use last-snap only in %default network
2021-11-10 11:47:22 +01:00
Philip Monk
08ab77893e
azimuth: don't start on fake ships
2021-11-09 22:36:05 -08:00
Philip Monk
185fd1f979
azimuth: fixing upgrading from mainnet
...
load snapshot and node on boot and make sure we initalize after
eth-watcher updates
2021-11-09 16:42:03 -08:00
Philip Monk
bf7f4ba453
Merge remote-tracking branch 'origin/m/naive-ugprade-path' into philip/roller
2021-11-09 12:52:25 -08:00
fang
07e59afcfe
azimuth: properly nuke azimuth-tracker on-init
2021-11-09 16:00:01 +01:00
Philip Monk
42410a708d
azimuth: give backlog on %watch
2021-11-09 00:42:34 -08:00
Philip Monk
ea199bfba9
azimuth: correctly load snapshot on boot
2021-11-09 00:22:32 -08:00
Philip Monk
45c1693085
jael: use default network id
2021-11-08 22:59:06 -08:00
Philip Monk
681faa68e4
azimuth: send updates to jael
2021-11-08 21:56:47 -08:00
fang
fecb809573
jael, azimuth: reconfigure jael for L2
...
Jael needs to be reconfigured to listen to the new aagent for azimuth
events, and the old app needs to be shut down. We do this in
/app/azimuth's +on-init.
Additionally, we make sure that jael doesn't crash when it (as expected)
loses its subscription to the old agent.
2021-11-06 01:10:33 +01:00
yosoyubik
1c641629e2
roller: add azimuth refresh-rate to getConfig RPC
2021-11-04 09:54:25 +01:00
yosoyubik
f243500068
Merge remote-tracking branch 'origin/philip/naive' into naive/roller
2021-09-27 16:29:12 +02:00
yosoyubik
7e0c99c980
azimuth+roller: add get-naive/predicted-state
2021-09-05 12:36:19 +02:00
yosoyubik
2190eea370
roller: add timestamp to roller-tx
2021-08-27 16:05:59 +02:00
yosoyubik
343ade2f15
azimuth: add /gx/=azimuth=/point/[~ship] scry path
2021-08-24 15:40:55 +02:00
yosoyubik
f87658b1ad
roller: wip roller-cli client
2021-08-22 18:23:30 +02:00
yosoyubik
d559ad35bc
roller: clean up
2021-08-04 15:53:57 +02:00
yosoyubik
722ce969a5
aggregator: refactor ownership index logic
2021-07-22 06:34:42 +02:00
yosoyubik
c2dd622fe3
naive: derive predicted ownership in /app/aggregator
2021-07-08 16:45:27 +02:00
yosoyubik
af295b2f5e
naive: add get-dns to azimuth-rpc
2021-06-28 13:01:04 +02:00
yosoyubik
5eb07edde5
naive: add ownership index to /app/azimuth
2021-06-28 07:26:47 +02:00
yosoyubik
2c2c7db981
naive: get point data from aggregator
2021-06-22 15:00:24 +02:00
yosoyubik
7e665b4fe8
naive: update wires and path in azimuth
2021-06-03 09:27:08 +02:00
yosoyubik
4642ece88f
naive: use get-network for retrieving chain data
2021-06-01 14:28:17 +02:00
yosoyubik
5453722728
naive: give naive state after aggregator subscription
2021-06-01 14:23:53 +02:00
yosoyubik
5b0e785cf7
naive: choose contracts from mainnet, ropsten or local
2021-05-29 15:42:27 +02:00
yosoyubik
520225056a
naive: send signature and raw tx for every tx in the roll
...
this assumes that the naive contract has a "fallback" function:
https://docs.soliditylang.org/en/v0.5.3/contracts.html#fallback-function
2021-05-29 14:57:57 +02:00
yosoyubik
98bef023cf
naive: send updates to aggregator
2021-05-29 14:53:57 +02:00
yosoyubik
31cc219997
naive: support "get point" scry
2021-05-14 07:23:58 +02:00
Philip Monk
75eeef544e
naive: store crypto suite number in state
...
We now store the raw crypto suite number, authentication key, and
encryption key. App/azimuth converts this to a `pass` for jael's
benefit.
2021-04-28 20:51:43 -07:00
Philip Monk
5d52171a47
naive: add domain separator
...
To prevent replay across chains, eg from ropsten to mainnet.
Additionally, this introduces a version number, so we won't have to
worry about future signature formats being accidentally compatible with
this one.
2021-04-28 18:13:00 -07:00
Philip Monk
6dda168f3c
naive: factor out keccak into verifier
...
The verifier now takes an octs so that we can properly hash it to the 32
bytes required by ecdsa.
This allows lib/naive to use its own stdlib again.
2021-04-28 15:38:28 -07:00
Philip Monk
f2c43edc99
naive: make bitlengths explicit
...
Also switches everything to ropsten by default, including ivory pill.
Batches work on ropsten now.
Also adds +tx as a hacky development tool to create text for metamask to
sign and then turn that into a batch. A useful reference for bridge and
aggregator work.
2021-04-27 22:58:19 -07:00