Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whf/add genesis #138

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions .xlayer/erigon-testnet/dynamic-mynetwork-allocs.json

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions .xlayer/erigon-testnet/dynamic-mynetwork-chainspec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it add a readme file to discribe how to use these files step one by one?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😉

{
"ChainName": "dynamic-mynetwork",
"chainId": 1001,
"consensus": "ethash",
"homesteadBlock": 0,
"daoForkBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"muirGlacierBlock": 0,
"berlinBlock": 0,
"londonBlock": 9999999999999999999999999999999999999999999999999,
"arrowGlacierBlock": 9999999999999999999999999999999999999999999999999,
"grayGlacierBlock": 9999999999999999999999999999999999999999999999999,
"terminalTotalDifficulty": 58750000000000000000000,
"terminalTotalDifficultyPassed": false,
"shanghaiTime": 9999999999999999999999999999999999999999999999999,
"cancunTime": 9999999999999999999999999999999999999999999999999,
"pragueTime": 9999999999999999999999999999999999999999999999999,
"ethash": {}
}

7 changes: 7 additions & 0 deletions .xlayer/erigon-testnet/dynamic-mynetwork-conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

{
"root": "0x30ffa41c17dda15d2c0a49d4ad701930aa55ee31742c075b4b1f471cfd214d60",
"timestamp": 1724226792,
"gasLimit": 0,
"difficulty": 0
}
1 change: 1 addition & 0 deletions zk/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
// if there is no new fully downloaded batch - do not short circuit
// returns (shouldShortCircuit, blockNumber, error)
func ShouldShortCircuitExecution(tx kv.RwTx, logPrefix string) (bool, uint64, error) {
return false, 0, nil
Copy link

@zjg555543 zjg555543 Sep 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should delete this debug code.

hermezDb := hermez_db.NewHermezDb(tx)

// get highest verified batch
Expand Down
Loading