アプリケーション開発ポータルサイト
ServerNote.NET
Amazon.co.jpでPC関連商品タイムセール開催中!
カテゴリー【仮想通貨Node.jsUbuntu
Fatal: Failed to register the Ethereum service: ethash is only supported as a historical component of already merged networks
POSTED BY
2024-05-12

Fatal: Failed to register the Ethereum service: ethash is only supported as a historical component of already merged networks

どうやら最新のgethでは、旧式のPOWはサポートせずPOAまたはPOSのみを使用ということで起きるエラーとのこと。

https://geth.ethereum.org/docs/fundamentals/private-network

にあるように、POAベースのgenesis.jsonならOK。

JSONgeth-poa-genesis.jsonGitHub Source
{
  "config": {
    "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": 5,
      "epoch": 30000
    }
  },
  "difficulty": "1",
  "gasLimit": "800000000",
  "extradata": "0x00000000000000000000000000000000000000000000000000000000000000005ec235c02ff45e8b86ec03b3356e04d483e66ac8a15582b65344096269317365b33ea491d4d03e630000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
  "alloc": {
    "5ec235c02ff45e8b86ec03b3356e04d483e66ac8": { "balance": "1000000000000000000000" },
    "a15582b65344096269317365b33ea491d4d03e63": { "balance": "1000000000000000000000" }
  }
}

※本記事は当サイト管理人の個人的な備忘録です。本記事の参照又は付随ソースコード利用後にいかなる損害が発生しても当サイト及び管理人は一切責任を負いません。
※本記事内容の無断転載を禁じます。
【WEBMASTER/管理人】
自営業プログラマーです。お仕事ください!
ご連絡は以下アドレスまでお願いします★

☆ServerNote.NETショッピング↓
ShoppingNote / Amazon.co.jp
☆お仲間ブログ↓
一人社長の不動産業務日誌
【キーワード検索】