Reputation: 11
Trying to create a Private Ethereum Network Locally. I am getting following error when trying to start the Node(genesis node)
INFO [06-24|18:58:51.258] Maximum peer count ETH=50 total=50
INFO [06-24|18:58:51.262] Set global gas cap cap=50,000,000
INFO [06-24|18:58:51.262] Initializing the KZG library backend=gokzg
INFO [06-24|18:58:51.272] Allocated trie memory caches clean=154.00MiB dirty=256.00MiB
INFO [06-24|18:58:51.274] Using pebble as the backing database
INFO [06-24|18:58:51.274] Allocated cache and file handles database=J:\Aadit\MyNetwork\node1\geth\chaindata cache=512.00MiB handles=8192
INFO [06-24|18:58:51.311] Opened ancient database database=J:\Aadit\MyNetwork\node1\geth\chaindata\ancient\chain readonly=false
INFO [06-24|18:58:51.311] State schema set to default scheme=path
Fatal: Failed to register the Ethereum service: only PoS networks are supported, please transition old ones with Geth v1.13.x
Will update the solution by installing older version!
Upvotes: 1
Views: 1087
Reputation: 219
I know this question is a bit older, but since I had the same issue and found a solution, I am going to give it hear in case someone else stumbles upon it.
As you, I am setting up a private blockchain using Geth v1.14.13.
Like you, I got:
Failed to register the Ethereum service: only PoS networks are supported, please transition old ones with Geth v1.13.x
I assume you are using a custom genesis.json file. You would need to add "terminalTotalDifficulty":0
and "terminalTotalDifficultyPassed":true
to your genesis file:
Here a genesis.json file which I obtained using geth --dev dumpgenesis
:
{
"config":{
"chainId":2345,
"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,
"shanghaiTime":0,
"cancunTime":0,
"pragueTime":0,
"terminalTotalDifficulty":0,
"depositContractAddress":"0x0000000000000000000000000000000000000000"
},
"nonce":"0x0",
"timestamp":"0x0",
"extraData":"0x",
"gasLimit":"0xaf79e0",
"difficulty":"0x0",
"mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase":"0x0000000000000000000000000000000000000000",
"alloc":{
"0000000000000000000000000000000000000001":{
"balance":"0x1"
},
"0000000000000000000000000000000000000002":{
"balance":"0x1"
},
"0000000000000000000000000000000000000003":{
"balance":"0x1"
},
"0000000000000000000000000000000000000004":{
"balance":"0x1"
},
"0000000000000000000000000000000000000005":{
"balance":"0x1"
},
"0000000000000000000000000000000000000006":{
"balance":"0x1"
},
"0000000000000000000000000000000000000007":{
"balance":"0x1"
},
"0000000000000000000000000000000000000008":{
"balance":"0x1"
},
"0000000000000000000000000000000000000009":{
"balance":"0x1"
},
"00000961ef480eb55e80d19ad83579a64c007002":{
"code":"0x3373fffffffffffffffffffffffffffffffffffffffe1460cb5760115f54807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff146101f457600182026001905f5b5f82111560685781019083028483029004916001019190604d565b909390049250505036603814608857366101f457346101f4575f5260205ff35b34106101f457600154600101600155600354806003026004013381556001015f35815560010160203590553360601b5f5260385f601437604c5fa0600101600355005b6003546002548082038060101160df575060105b5f5b8181146101835782810160030260040181604c02815460601b8152601401816001015481526020019060020154807fffffffffffffffffffffffffffffffff00000000000000000000000000000000168252906010019060401c908160381c81600701538160301c81600601538160281c81600501538160201c81600401538160181c81600301538160101c81600201538160081c81600101535360010160e1565b910180921461019557906002556101a0565b90505f6002555f6003555b5f54807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14156101cd57505f5b6001546002828201116101e25750505f6101e8565b01600290035b5f555f600155604c025ff35b5f5ffd",
"balance":"0x0",
"nonce":"0x1"
},
"0000bbddc7ce488642fb579f8b00f3a590007251":{
"code":"0x3373fffffffffffffffffffffffffffffffffffffffe1460d35760115f54807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1461019a57600182026001905f5b5f82111560685781019083028483029004916001019190604d565b9093900492505050366060146088573661019a573461019a575f5260205ff35b341061019a57600154600101600155600354806004026004013381556001015f358155600101602035815560010160403590553360601b5f5260605f60143760745fa0600101600355005b6003546002548082038060021160e7575060025b5f5b8181146101295782810160040260040181607402815460601b815260140181600101548152602001816002015481526020019060030154905260010160e9565b910180921461013b5790600255610146565b90505f6002555f6003555b5f54807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff141561017357505f5b6001546001828201116101885750505f61018e565b01600190035b5f555f6001556074025ff35b5f5ffd",
"balance":"0x0",
"nonce":"0x1"
},
"0000f90827f1c53a10cb7a02335b175320002935":{
"code":"0x3373fffffffffffffffffffffffffffffffffffffffe14604657602036036042575f35600143038111604257611fff81430311604257611fff9006545f5260205ff35b5f5ffd5b5f35611fff60014303065500",
"balance":"0x0",
"nonce":"0x1"
},
"000f3df6d732807ef1319fb7b8bb8522d0beac02":{
"code":"0x3373fffffffffffffffffffffffffffffffffffffffe14604d57602036146024575f5ffd5b5f35801560495762001fff810690815414603c575f5ffd5b62001fff01545f5260205ff35b5f5ffd5b62001fff42064281555f359062001fff015500",
"balance":"0x0",
"nonce":"0x1"
}
},
"number":"0x0",
"gasUsed":"0x0",
"parentHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
"baseFeePerGas":"0x3b9aca00",
"excessBlobGas":null,
"blobGasUsed":null
}
I did that so that I could change the chain id.
To use it, run:
geth init /root/genesis.json
geth --datadir /root/.ethereum \
--dev \
--http --http.api eth,net,web3,personal --http.addr 0.0.0.0 \
--allow-insecure-unlock \
--dev.period 2
That will start your Geth node in dev mode and seal new blocks every 2 seconds - no need for a consensus client.
Enjoy :)
Upvotes: 0