forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from primevprotocol/shawn/local-l1
feat: local L1
- Loading branch information
Showing
6 changed files
with
146 additions
and
7 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
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
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,12 @@ | ||
# Local L1 nodes are NOT built from source | ||
FROM ethereum/client-go:v1.13.4 as builder | ||
|
||
RUN apk add --no-cache jq | ||
|
||
# Reuse entrypoint for mev-commit chain | ||
COPY ./entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
|
||
COPY ./local-l1/genesis.json /genesis.json | ||
|
||
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] |
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,5 @@ | ||
# Local L1 | ||
|
||
This directory contains a genesis and dockerfile for running a local L1 chain in addition to the mev-commit chain. | ||
|
||
Nodes for the local L1 chain are built from geth v1.13.4 images, not built from source code in this repo like the mev-commit chain. |
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,52 @@ | ||
{ | ||
"config": { | ||
"chainId": 39999, | ||
"homesteadBlock": 0, | ||
"eip150Block": 0, | ||
"eip155Block": 0, | ||
"eip158Block": 0, | ||
"byzantiumBlock": 0, | ||
"constantinopleBlock": 0, | ||
"petersburgBlock": 0, | ||
"istanbulBlock": 0, | ||
"muirGlacierBlock": 0, | ||
"berlinBlock": 0, | ||
"londonBlock": 0, | ||
"arrowGlacierBlock": 0, | ||
"grayGlacierBlock": 0, | ||
"clique": { | ||
"period": 12, | ||
"epoch": 30000 | ||
} | ||
}, | ||
"nonce": "0x0", | ||
"timestamp": "0x6546df6d", | ||
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000d9cd8E5DE6d55f796D980B818D350C0746C25b97788EBABe5c3dD422Ef92Ca6714A69e2eabcE1Ee40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | ||
"gasLimit": "0x1c9c380", | ||
"difficulty": "0x1", | ||
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"coinbase": "0x0000000000000000000000000000000000000000", | ||
"alloc": { | ||
"0xBe3dEF3973584FdcC1326634aF188f0d9772D57D": { | ||
"balance": "10000000000000000000000" | ||
}, | ||
"d9cd8E5DE6d55f796D980B818D350C0746C25b97": { | ||
"balance": "10000000000000000000000" | ||
}, | ||
"788EBABe5c3dD422Ef92Ca6714A69e2eabcE1Ee4": { | ||
"balance": "10000000000000000000000" | ||
}, | ||
"0DCaa27B9E4Db92F820189345792f8eC5Ef148F6": { | ||
"balance": "10000000000000000000000" | ||
}, | ||
"f39Fd6e51aad88F6F4ce6aB8827279cffFb92266": { | ||
"balance": "10000000000000000000000" | ||
} | ||
}, | ||
"number": "0x0", | ||
"gasUsed": "0x0", | ||
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"baseFeePerGas": "0x3b9aca00", | ||
"excessBlobGas": null, | ||
"blobGasUsed": null | ||
} |