Commit Graph

25315 Commits

Author SHA1 Message Date
yosoyubik
845cd2090e naive: discard duplicate txs whe updatating predicted state 2021-06-28 07:46:09 +02:00
yosoyubik
5eb07edde5 naive: add ownership index to /app/azimuth 2021-06-28 07:26:47 +02:00
yosoyubik
8ea0ee004e naive: clean up updating predicted state 2021-06-24 16:56:32 +02:00
yosoyubik
d03d710796 naive: add index of points by ethereum address 2021-06-24 16:54:23 +02:00
yosoyubik
e05234c179 naive: add gas to ju 2021-06-24 16:41:44 +02:00
yosoyubik
1e7e2e1193 naive: use lte to emphasize parent equality 2021-06-24 16:40:53 +02:00
yosoyubik
5b317acca5 naive: use 10 gwei for fallback-gas-price 2021-06-24 16:38:54 +02:00
yosoyubik
3289f84b71 naive: update history's tx status when predicting state 2021-06-22 15:15:33 +02:00
yosoyubik
2c2c7db981 naive: get point data from aggregator 2021-06-22 15:00:24 +02:00
yosoyubik
c715ef59fd naive: add cancel pending transaction 2021-06-21 11:27:36 +02:00
yosoyubik
7e9a2bcfcd naive: fix json param parsing in rpc-api 2021-06-17 15:12:10 +02:00
yosoyubik
845a2d1c1b naive: add l2 tx history by ethereum address 2021-06-16 17:03:21 +02:00
yosoyubik
33b9f76540 naive: account for raw-tx data size in gas limit 2021-06-15 07:22:55 +02:00
yosoyubik
4c4e0e70b8 naive: fix gas limit for l2 batch transaction 2021-06-14 17:21:57 +02:00
yosoyubik
066795c32c naive: add pending-by-address to aggregator 2021-06-14 15:00:15 +02:00
yosoyubik
0573232726 naive: add %noncefrom ship/proxy to rpc-api 2021-06-14 14:18:57 +02:00
yosoyubik
e513768b90 naive: wip scale gas limit with roll size 2021-06-11 16:41:17 +02:00
yosoyubik
bc3d6e4ac7 Merge branch 'yu/naive-ordered-map' into naive/aggregator 2021-06-11 12:39:03 +02:00
yosoyubik
121ee03fd0 naive: add hint to +por arm 2021-06-11 12:32:47 +02:00
yosoyubik
b52cf1aa1d naive: defer deriving predicted naive state in aggregator 2021-06-11 12:27:05 +02:00
yosoyubik
37ab836bcb naive: add latest +on map with parent order 2021-06-10 13:39:03 +02:00
yosoyubik
749f8e93f9 naive: add when %next-batch to rpc-api 2021-06-09 15:59:04 +02:00
yosoyubik
60ba0f81dd naive: add units for endpoint and nonce in aggregator 2021-06-09 15:37:37 +02:00
yosoyubik
0a5a69396c naive: remove setting nonce manually 2021-06-09 14:26:10 +02:00
yosoyubik
87be8c0e2d naive: wip use ordered map for points.nas 2021-06-09 14:20:58 +02:00
yosoyubik
0f0af88a31 naive: wip add ordered-map for points 2021-06-09 13:34:04 +02:00
yosoyubik
852881eff1 naive: rename nas to pre (predicted state) 2021-06-09 13:30:36 +02:00
yosoyubik
85c0c11257 naive: add time for next L2 batch to state 2021-06-09 13:05:17 +02:00
yosoyubik
b9c5d9e2e6 naive: listen to %resend timer 2021-06-07 13:09:16 +02:00
yosoyubik
ca2b626c4e naive: init aggregator timer on-init 2021-06-07 13:07:35 +02:00
yosoyubik
e7eaf3d2c6 naive: try updating predicted state on confirmed L2 tx 2021-06-07 11:41:02 +02:00
yosoyubik
e35a8b9e7f naive: cached naive state -> predicted naive state 2021-06-07 11:20:31 +02:00
yosoyubik
a01289145b naive: update aggregator cached naive state eagerly
The aggregator keeps a cached naive state that is recreated using the 
canonical L2 state from the %azimuth agent, every time a new L2 tx comes 
in via +take-tx (used by clients of the aggregator).

This makes the cached state ahead of the canonical L2 state, but 
recreated every time a client sends a tx, using the list of pending (not 
sent out to an ethereum node) and sending (waiting confirmation from 
L1). This step drops any pending and sending transactions that do not 
apply correctly.

Hearing about a new L2 tx confirmed in L1 (+on-naive-diff) removes such 
transaction from the sending list, but does not update the cached state, 
since this was already done when the L2 tx was seen in +take-tx.
2021-06-05 14:24:37 +02:00
yosoyubik
9c70e006a1 naive: fix wrong wire when receiving azimuth txs 2021-06-05 13:58:34 +02:00
yosoyubik
5859642363 naive: pack tx in send thread in correct order 2021-06-05 13:56:42 +02:00
yosoyubik
bac79bf55d naive: add get-spawned to rpc-api 2021-06-04 11:41:59 +02:00
yosoyubik
7e665b4fe8 naive: update wires and path in azimuth 2021-06-03 09:27:08 +02:00
yosoyubik
9c18638469 naive: update wires in aggregator 2021-06-03 09:26:13 +02:00
yosoyubik
82ab2b6b2d naive: use canonical state from azimuth in aggregator 2021-06-03 09:24:28 +02:00
yosoyubik
fc8e090a29 naive: add config action 2021-06-03 09:11:33 +02:00
yosoyubik
943eee1db6 naive: add ethereum signing address to aggregator sending map 2021-06-01 16:18:32 +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
52af4ad1c3 naive: remove unused batch-function hash 2021-06-01 14:09:48 +02:00
yosoyubik
9f3202eded naive: use cached naive state in aggregator 2021-06-01 13:56:56 +02:00
yosoyubik
fbd96f69ee naive: fix aggregator pokes from rpc-api 2021-05-31 12:20: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
4cbf3d497b naive: update tx state in finding txs 2021-05-29 14:46:19 +02:00