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

Configure geth to support "finalized" blocks. #12

Closed
sveitser opened this issue Mar 1, 2024 · 1 comment · Fixed by #13
Closed

Configure geth to support "finalized" blocks. #12

sveitser opened this issue Mar 1, 2024 · 1 comment · Fixed by #13

Comments

@sveitser
Copy link
Contributor

sveitser commented Mar 1, 2024

We need to add the --dev flag to the startup command and the following to the genesis block config.

modified   geth-config/genesis-default.json
@@ -14,10 +14,11 @@
     "londonBlock": 0,
     "arrowGlacierBlock": 0,
     "grayGlacierBlock": 0,
-    "clique": {
-      "period": 3,
-      "epoch": 30000
-    }
+    "shanghaiBlock": 0,
+    "shanghaiTime": 0,
+    "terminalTotalDifficulty": 0,
+    "terminalTotalDifficultyPassed": true,
+    "isDev": true
   },
   "nonce": "0x0",
   "timestamp": "0x6511b40b",
@sveitser sveitser changed the title Configure to support "finalized" blocks. Configure geth to support "finalized" blocks. Mar 1, 2024
@sveitser
Copy link
Contributor Author

sveitser commented Mar 1, 2024

To check if things are working there should be a "Consensus: unknown" log in the geth startup logs.

sveitser added a commit that referenced this issue Mar 1, 2024
- Enables querying "finalized" blocks.
- Update geth.

The post merge dev mode doesn't seem very well documented.

It was added in this PR:

ethereum/go-ethereum#28463

To get a working genesis block, this workaround is needed

- geth --datadir /path/to/data --dev
- shut down geth
- geth --datadir /path/to/data dumpgenesis

Close #12
sveitser added a commit that referenced this issue Mar 1, 2024
- Enables querying "finalized" blocks.
- Update geth.

The post merge dev mode doesn't seem very well documented.

It was added in this PR:

ethereum/go-ethereum#28463

To get a working genesis block, this workaround is needed

- geth --datadir /path/to/data --dev
- shut down geth
- geth --datadir /path/to/data dumpgenesis

Close #12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant