Sign inSign up

ceasona250/ethereum

By ceasona250

•Updated over 4 years ago

Image
0

1.9K

ceasona250/ethereum repository overview

VERSION: 1.10.13-stable-7a0c19f8

docker pull ceasona250/ethereum

docker run -it -p 8545:8545 --rm ceasona250/ethereum bash

  1. vim genesis.json

    {
      "config": {
        "chainId": 250,
        "homesteadBlock": 0,
        "eip150Block": 0,
        "eip155Block": 0,
        "eip158Block": 0,
        "byzantiumBlock": 0,
        "constantinopleBlock": 0,
        "petersburgBlock": 0,
        "istanbulBlock": 0,
        "berlinBlock": 0,
        "londonBlock": 0
      },
      "alloc": {},
      "coinbase": "0x0000000000000000000000000000000000000000",
      "difficulty": "0x20000",
      "extraData": "",
      "gasLimit": "0x2fefd8",
      "nonce": "0x0000000000000042",
      "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "timestamp": "0x00"
    }
    
  2. 初始化一个创世区块

    geth --datadir chaindata init genesis.json
    
  3. 启用私有链

geth --datadir chaindata --networkid 10 --nodiscover --identity "node2" --http  --http.addr "0.0.0.0" --http.api "eth,net,web3,personal,miner,admin,txpool,debug" --http.corsdomain "*" --allow-insecure-unlock console 

Tag summary

Content type

Image

Digest

Size

195.7 MB

Last updated

over 4 years ago

docker pull ceasona250/ethereum