Skip to content

Commit

Permalink
added block end entry (#844)
Browse files Browse the repository at this point in the history
* added block end entry

* fix array length to accomodate the new entry

* a bit of refactor an remove unused stuff

* fix tests

* fixed datastream hang after reconnect + code quality
  • Loading branch information
V-Staykov authored Jul 25, 2024
1 parent dc3cbcc commit 668603d
Show file tree
Hide file tree
Showing 18 changed files with 464 additions and 623 deletions.
4 changes: 4 additions & 0 deletions eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
}

seqVerSyncer := syncer.NewL1Syncer(
ctx,
ethermanClients,
seqAndVerifL1Contracts,
seqAndVerifTopics,
Expand All @@ -805,6 +806,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
)

backend.l1Syncer = syncer.NewL1Syncer(
ctx,
ethermanClients,
l1Contracts,
l1Topics,
Expand All @@ -814,6 +816,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
)

l1InfoTreeSyncer := syncer.NewL1Syncer(
ctx,
ethermanClients,
[]libcommon.Address{cfg.AddressGerManager},
[][]libcommon.Hash{{contracts.UpdateL1InfoTreeTopic}},
Expand Down Expand Up @@ -867,6 +870,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
backend.txPool2.ForceUpdateLatestBlock(executionProgress)

l1BlockSyncer := syncer.NewL1Syncer(
ctx,
ethermanClients,
[]libcommon.Address{cfg.AddressZkevm, cfg.AddressRollup},
[][]libcommon.Hash{{
Expand Down
Loading

0 comments on commit 668603d

Please sign in to comment.