Commit Graph

57 Commits

Author SHA1 Message Date
Xi Lin
5a95dcf5ba bugfix(bridge&database): fix compute message hash and add unit tests (#233)
Co-authored-by: HAOYUatHZ <haoyu@protonmail.com>
2023-01-17 06:56:21 +08:00
colin
47b4c54e05 fix(relayer): use sync map for concurrent write (#231)
Co-authored-by: colinlyguo <colinlyguo@gmail.com>
Co-authored-by: HAOYUatHZ <haoyu@protonmail.com>
2023-01-14 12:07:59 +08:00
maskpp
fe822a65b9 refactor(bridge): refactor bridge parallelization (#213)
Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
Co-authored-by: colinlyguo <colinlyguo@gmail.com>
2023-01-14 09:40:07 +08:00
maskpp
a44956a05f fix(bug): fix data race in common/cmd module. (#220) 2023-01-11 21:05:46 +08:00
Péter Garamvölgyi
d24392feac feat(bridge): Propose batches, fetch blocks and events in parallel (#216) 2023-01-10 23:13:06 +08:00
HAOYUatHZ
9f9e23ff0e chore(coordinator): add more logs (#177)
Co-authored-by: Lawliet-Chan <1576710154@qq.com>
2023-01-10 09:29:43 +08:00
Péter Garamvölgyi
fa93de97de feat(bridge): Relay messages and batches in parallel (#212)
Co-authored-by: HAOYUatHZ <haoyu@protonmail.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2023-01-10 09:18:36 +08:00
Xi Lin
eba7647e21 bugfix(bridge): add suffix to id in processingFinalization and processingCommitment (#207)
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2023-01-06 14:33:21 +01:00
Xi Lin
51076d21c3 bugfix(bridge): failed to fetch rollup events on restart (#201) 2023-01-06 20:39:09 +08:00
maskpp
077ed9839a feat(bug): fix bug in l2 watcher (#199) 2023-01-05 17:32:50 +08:00
HAOYUatHZ
7da717b251 chore(bridge): update l2 contractEventsBlocksFetchLimit (#198) 2023-01-04 15:47:35 +08:00
HAOYUatHZ
bbdbf3995f feat(bridge): fast catch up new blocks (#184)
Co-authored-by: colinlyguo <colinlyguo@gmail.com>
2023-01-04 15:43:14 +08:00
HAOYUatHZ
d04522027c refactor: clean up codes (#187)
Co-authored-by: colinlyguo <colinlyguo@gmail.com>
Co-authored-by: maskpp <maskpp266@gmail.com>
2022-12-28 10:55:56 +08:00
HAOYUatHZ
a545954dbc chore(bridge): increase blockTracesFetchLimit & `contractEventsBlock… (#185) 2022-12-26 17:55:03 +08:00
HAOYUatHZ
e17647bc9f chore(batch_proposer): add more check for batchTxNumThreshold (#180) 2022-12-26 14:16:39 +08:00
HAOYUatHZ
8ad8a1b6f0 feat(batch_proposer): add batchTxNumThreshold (#178) 2022-12-26 10:17:16 +08:00
maskpp
22f6781c26 feat(Integration test): Enable run child process in integration-test test cases. (#102)
Co-authored-by: colinlyguo <102356659+colinlyguo@users.noreply.github.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2022-12-22 22:13:04 +08:00
HAOYUatHZ
b165402e81 refactor(bridge): refactor watcher confirmation check and add more logs (#173)
Co-authored-by: Scroll Dev <dev@scroll.io>
2022-12-22 21:26:52 +08:00
HAOYUatHZ
00dc075d9c refactor: clean up codes (#168) 2022-12-19 20:06:00 +08:00
HAOYUatHZ
927011641d refactor(bridge): remove L2Watcher ReplayBlockResultByHash API (#144)
Co-authored-by: maskpp <maskpp266@gmail.com>
2022-12-16 10:45:46 +08:00
Nazarii Denha
479a061ee6 perf: optimize block trace db usage (#162)
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Co-authored-by: maskpp <maskpp266@gmail.com>
Co-authored-by: HAOYUatHZ <haoyu@protonmail.com>
2022-12-14 21:43:33 +08:00
HAOYUatHZ
d463c6fb72 feat(batch_proposer): add batch_proposer configuration (#129)
Co-authored-by: maskpp <maskpp266@gmail.com>
2022-12-14 10:45:41 +08:00
maskpp
87fc9a8cc9 feat(l2geth version): bump l2geth version (#159) 2022-12-13 13:15:20 +08:00
Xi Lin
1aea4a2584 fix(bridge): handle l2geth reorg while fetch missing block (#136) 2022-12-09 19:22:21 +08:00
ChuhanJin
11fa61c45c refact(orm): parallel insert and change gas_cost compute logic (#133)
Co-authored-by: vincent <419436363@qq.com>
2022-12-09 17:37:22 +08:00
maskpp
9cf8613bb1 fix: fix nil interface check (#143) 2022-12-09 16:02:04 +08:00
maskpp
55de584f80 build: Update make mock_abi cmd (#135) 2022-12-09 08:51:45 +08:00
HAOYUatHZ
98cd149627 refactor: merge common config (#128) 2022-12-08 20:52:25 +08:00
colinlyguo
303a7d02c8 feat: coordinator graceful restart (#110)
Co-authored-by: colinlyguo <colinlyguo@gmail.com>
Co-authored-by: maskpp <maskpp266@gmail.com>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Co-authored-by: Lawliet-Chan <1576710154@qq.com>
Co-authored-by: HAOYUatHZ <haoyu@protonmail.com>
2022-12-08 19:44:16 +08:00
maskpp
e2f4477852 refactor(bridge config): delete chainID field (#134) 2022-12-06 14:21:21 +08:00
Xi Lin
cc2f5b5b0a feat(bridge): fix relay tx status based on fetched events (#56) 2022-12-06 13:32:57 +08:00
ChuhanJin
b794f31d38 feat: update ws api service (#39)
Co-authored-by: chuhanjin <419436363@qq.com>
Co-authored-by: maskpp <maskpp266@gmail.com>
Co-authored-by: Lawliet-Chan <1576710154@qq.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Co-authored-by: colinlyguo <colinlyguo@gmail.com>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
Co-authored-by: colinlyguo <102356659+colinlyguo@users.noreply.github.com>
2022-12-01 20:59:59 +08:00
HAOYUatHZ
130f2cdf37 chore: add more logs (#121) 2022-11-30 15:42:09 +08:00
HAOYUatHZ
fed5cef7fc fix(bridge): fix watcher processedMsgHeight (#122) 2022-11-30 11:31:37 +08:00
HAOYUatHZ
c5b56f0068 fix: fix several typos (#117)
Co-authored-by: maskpp <maskpp266@gmail.com>
2022-11-29 21:27:24 +08:00
ChuhanJin
fd92584ab9 doc: update readme in bridge/coordinator/database (#118)
Co-authored-by: vincent <419436363@qq.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2022-11-29 21:15:41 +08:00
Xi Lin
76131d0de7 fix(bridge): correctly initialization and reuse nonce on resubmiting (#116) 2022-11-29 21:09:33 +08:00
HAOYUatHZ
95fd1c57f8 feat: include at least 1 block in a batch (#114)
Co-authored-by: maskpp <maskpp266@gmail.com>
2022-11-28 15:58:13 +08:00
HAOYUatHZ
a701f14ad2 chore: bump l2geth version (#112) 2022-11-25 16:58:10 +08:00
ChuhanJin
f35fb5bcba test: optimize sleep and nonce in testcases (#87)
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2022-11-24 07:55:20 +08:00
HAOYUatHZ
6f453abbcc feat(bridge&coordinator&db&roller): commit batch of blocks (#57)
Co-authored-by: zimpha <zimpha@gmail.com>
Co-authored-by: maskpp <maskpp266@gmail.com>
2022-11-22 09:47:43 +08:00
Steven
971e935c48 build: update Dockerfile to use go compilation cache (#104) 2022-11-18 14:29:40 +08:00
HAOYUatHZ
399cea02e7 refactor: move common flags to utils package (#101)
Co-authored-by: chuhanjin <419436363@qq.com>
Co-authored-by: ChuhanJin <60994121+ChuhanJin@users.noreply.github.com>
Co-authored-by: Lawliet-Chan <1576710154@qq.com>
Co-authored-by: ChuhanJin <cj1436@nyu.edu>
2022-11-17 19:11:43 +08:00
maskpp
2288cb9f71 simplify abi (#76) 2022-11-09 21:02:15 +08:00
maskpp
054b45c8f1 refactor(bridge): simplify L2Config Unmarshalling (#75) 2022-11-09 18:12:51 +08:00
HAOYUatHZ
0e312f88bb fix(bridge): fix fetching too many blocks (#63) 2022-11-07 17:51:37 +08:00
ChuhanJin
60f30e5b33 feat: add database bin (#62)
Co-authored-by: chuhanjin <419436363@qq.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Co-authored-by: maskpp <maskpp266@gmail.com>
2022-11-05 06:16:24 +00:00
maskpp
3e76a1d2bc Fix bug in l2 watcher test case. (#68) 2022-11-04 15:36:18 +08:00
maskpp
8b1a3aa906 refactor: use account pool for sender (#53)
Co-authored-by: Péter Garamvölgyi <th307q@gmail.com>
Co-authored-by: Haichen Shen <shenhaichen@gmail.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Co-authored-by: HAOYUatHZ <haoyu@protonmail.com>
2022-11-03 22:41:22 +08:00
maskpp
defe1f42a9 random container port (#47)
Co-authored-by: colinlyguo <colinlyguo@gmail.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2022-11-03 15:11:40 +08:00