forked from 0xPolygonHermez/zkevm-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
synchronized refactor: move l1_parallel to a folder (0xPolygonHermez#…
…2836) * moved l1_parallel files to l1_parallel_sync folder
- Loading branch information
1 parent
f755f8f
commit ad201b9
Showing
38 changed files
with
576 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
synchronizer/block_range.go → synchronizer/l1_parallel_sync/block_range.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package synchronizer | ||
package l1_parallel_sync | ||
|
||
import ( | ||
"errors" | ||
|
2 changes: 1 addition & 1 deletion
2
synchronizer/generic_cache.go → ...ronizer/l1_parallel_sync/generic_cache.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package synchronizer | ||
package l1_parallel_sync | ||
|
||
import ( | ||
"time" | ||
|
2 changes: 1 addition & 1 deletion
2
synchronizer/generic_cache_test.go → ...er/l1_parallel_sync/generic_cache_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package synchronizer | ||
package l1_parallel_sync | ||
|
||
import ( | ||
"testing" | ||
|
2 changes: 1 addition & 1 deletion
2
synchronizer/l1_common.go → synchronizer/l1_parallel_sync/l1_common.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package synchronizer | ||
package l1_parallel_sync | ||
|
||
import ( | ||
"context" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package l1_parallel_sync | ||
|
||
import ( | ||
"context" | ||
"math/big" | ||
|
||
"github.com/0xPolygonHermez/zkevm-node/etherman" | ||
"github.com/ethereum/go-ethereum/common" | ||
ethTypes "github.com/ethereum/go-ethereum/core/types" | ||
) | ||
|
||
// L1ParallelEthermanInterface is an interface for the etherman package | ||
type L1ParallelEthermanInterface interface { | ||
HeaderByNumber(ctx context.Context, number *big.Int) (*ethTypes.Header, error) | ||
GetRollupInfoByBlockRange(ctx context.Context, fromBlock uint64, toBlock *uint64) ([]etherman.Block, map[common.Hash][]etherman.Order, error) | ||
EthBlockByNumber(ctx context.Context, blockNumber uint64) (*ethTypes.Block, error) | ||
GetLatestBatchNumber() (uint64, error) | ||
GetTrustedSequencerURL() (string, error) | ||
VerifyGenBlockNumber(ctx context.Context, genBlockNumber uint64) (bool, error) | ||
GetLatestVerifiedBatchNum() (uint64, error) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.