The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [genesis]

Questions related to the genesis block or file used in the initialization of a blockchain.

Filter by
Sorted by
Tagged with
0
votes
1answer
42 views

One contract accessing data from another fails

I am trying to get two contracts to interact: pragma solidity ^0.5.10; contract C2 { address public addr; constructor(address per) public { addr = per; } function ...
0
votes
0answers
26 views

Simple functions and constructors not working

I am working with a private blockchain, and am having a problem where simple functions and constructors simply fail to work. For instance: constructor(address admin) public{ owner = msg....
1
vote
2answers
64 views

Genesis.json in private (geth) network

My genesis.json { "config": { "chainId": 9731, "homesteadBlock": 0, "eip150Block": 0, "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "eip155Block": 0, "...
4
votes
1answer
79 views

What is the meaning of Ethereum mainnet genesis block extradata value?

Mainnet genesis bloc (see https://etherscan.io/block/0) has 0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa as extraData value. It doesn't seem to convert to ascii and, as this ...
0
votes
0answers
25 views

invalid genesis file: invalid character ',' after object key

I am trying to created ethereum private network. platform - Windows , geth 1.8.27-stable I created C:\myeth\genesis.json. genesis.json { "config": { "chainId": 0, "...
1
vote
1answer
61 views

Parity 2.2.7 doesn't recognize “registrar” or “eip150Transition” in the genesis file

I am trying to run a Parity client and sync it with a Geth private blockchain. I was able to do it at first, but after adding "constantinopleBlock", "byzantiumBlock" and "petersburgBlock" to the ...
0
votes
0answers
41 views

Geth - blockchain remains on genesis block, miner node doesn't mine

When attempting setup a local private PoW blockchain, an issue is arising where instead of mining new blocks, Geth instead hangs on the first attempt to 'commit new mining work'. Between the two geth ...
0
votes
1answer
22 views

What are the list of nodes at the bottom of kovan.json?

The Genesis file for Kovan has a list of nodes at the bottom. What are these nodes for? Is this just a list of known Kovan nodes? "nodes": [ "enode://...
0
votes
1answer
42 views

Reading genesis config on GoLang

In a custom fork of Ethereum my team is developing, we need to read a new config parameter from genesis block. At https://github.com/ethereum/go-ethereum/blob/master/cmd/evm/runner.go#L100 the code ...
0
votes
2answers
96 views

Original genesis.json file for ethereum mainnet, which should have 314 accounts allocation?

314 accounts are created at the start of ethereum frontier release and some funds were alloted to them. https://www.etherchain.org/charts/totalAccounts where can I get the genesis.json file used to ...
0
votes
1answer
100 views

Genesis allocation and (address, balance) tuples

On go-ethereum souce code at core\genesis_alloc.go(19): ... package core // Constants containing the genesis allocation of built-in genesis blocks. // Their content is an RLP-encoded list of (...
0
votes
0answers
38 views

How many ether are still untouched from the genesis block?

Would somebody know the exact number or an estimate of the number of ether which are still left untouched since the Ethereum genesis block ? Would it be fair after close to 5 years to consider those ...
0
votes
1answer
228 views

Getting Fatal: Error starting protocol stack: Genesis not found in chain

I am getting the following error in one of the nodes, I have a quorum network running. Fatal: Error starting protocol stack: Genesis not found in chain DEBUG[02-19|08:37:08] FS scan times ...
0
votes
0answers
63 views

Getting error while trying to generate genesis block?

I am trying to generate the genesis block but getting an error: Please guide me for this issue.
2
votes
1answer
84 views

How to Change Ethereum to Other Names

I used parity to deploy my private chain, I want to change "ethereum" to "abc", what should I do? In my Genesis file, i modified a parameter called subprotocolName, but i used MetaMask to test ...
2
votes
0answers
33 views

Geth Clique: can change config params in genesis and still retain the existing blocks?

I have altered my custom Geth private chain Clique PoA, but it seems after I do that I encounter: BAD BLOCK Error: invalid receipt root hash Is it possible to: change the Geth code add a new hard ...
1
vote
2answers
145 views

How does 0x0000000000000000000000000000000000000000 have over $1.5 trillion octillion octillion in tokens? [duplicate]

I looked up 0x0000000000000000000000000000000000000000 on Etherscan, and realized that the address holds a lot in ERC tokens. While the ETH balance (about 7,549 ETH or about $841,000) isn't abnormal, ...
0
votes
1answer
64 views

how to include transations in genesis block

can one please advise how to include transactions in the genesis block of private ethereum network ? can it be done via genesis.json similarly to contract using code: parameter ?
1
vote
1answer
147 views

How to burn ether securely? [duplicate]

If I want to burn ether, is it safe to send it to 0x0000000000000000000000000000000000000000 - safe in the sense that there is provably no way (other than cracking encryption or bruteforce) that this ...
4
votes
1answer
110 views

Retrieve CHAIN_ID of the executing chain from a Solidity contract

Is there a way to directly be able to retrieve CHAIN_ID information about the executing chain from a smart contract? I know that for any chain that has EIP-155 implemented, CHAIN_IDs are retrievable ...
0
votes
1answer
124 views

Why I need the genesis file to join a network?

I created a private ethereuem network using geth, and now I want other machine to join my network, I try this command : geth --datadir node1/ --syncmode 'full' --port 30304 --rpc --rpcaddr '...
0
votes
2answers
155 views

Change in genesis file without creating chain from the start

We're working with private Blockchain(PoA, 2 consensus node) and we've already created few blocks. Now we'd like to add some change in genesis file. So, basically question is, how can we support ...
3
votes
1answer
382 views

Geth parameter “networkid” vs. Genesis block “chainId” config?

I have set up a private Ethereum network with a custom chainId (for example 67890) specified in the config part of the genesis.json file, did geth init genesis.json, and got the private net up and ...
0
votes
1answer
191 views

oversized data during truffle migrate

In Quorum, while deploying a 54KB smart contract via truffle migrate, I am getting the error "oversized data" Tried adding maxCodeSize to genesis.json but did not work
2
votes
2answers
143 views

Does the Genesis Block get the block reward of 5 ether?

Getting mixed information. According to https://etherscan.io/block/0) it does and was mined by 0x0000000000000000000000000000000000000000 on July 30th but according to the Parity (archival mode) it ...
1
vote
1answer
54 views

“Difficulty” opcode pushes always 0x0 to stack

Currently, I do some experiments with Geth-EVM and opcode execution. During the experiments, I observed that the DIFFICULTY opcode always pushs 0x0 to the EVM stack regardless of how I set the ...
1
vote
0answers
314 views

Best Method to Increase TPS on PoA Blockchain

In creating a PoA blockchain where a high TPS is needed, how will you define the genesis.json configuration? There will be sealer nodes on opposite ends of the globe with ~ 0.1-0.2 second latency. ...
7
votes
2answers
2k views

Who has access to ethereum 0x0000000000000000000000000000000000000000 address?

Who own ethereum 0x0000000000000000000000000000000000000000 address? I have received some 0Chain token from this address. I know this is a genesis address but who can access it?
2
votes
1answer
325 views

How to configure extraData field in genesis file

I am in the process of setting up a private, permissioned Quorum blockchain with Istanbul consensus for simple use cases. When I specify the number of validators when generating the genesis file it ...
4
votes
1answer
1k views

Clique: Genesis File

What are the mandatory parameters of genesis.json File in PoA? and what are their expected values? for ex. values of byzantiumBlock epi155Block DAOForkBlock EIP150Block EIP158Block epoch nonce ...
0
votes
1answer
258 views

Can I edit genesis.json file of ganache

I want to configure ganache for using proof of authorisation consensus mechanism instead of using proof of work. I want to edit genesis.json file for the same. I want to know where ganache stores its ...
0
votes
1answer
1k views

Private chain Ethereum handshake failed Genesis block mismatch

I'm setting up a private chain between two VMs. The first node started mining successfully, and the connetion between the two VMs has no problem. But when I try to connect the second node to the ...
0
votes
2answers
309 views

Invalid genesis file:cannot unmarshal number into Go struct field Genesis.alloc of type *math.HexOrDecimal256

Here is my genesis.json file { "config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": 0 }, "gasLimit": "21000000", "difficulty": "20000", ...
0
votes
2answers
514 views

Ethereum private network without new coin mining

I managed to create a private Ethereum network using the following genesis.json { "config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": ...
0
votes
1answer
165 views

Error creating CustomGenesis

I am attempting to deploy on my local Ethereum testnet. My new testnet address needs a balance. So I try to create a Genesis File: geth init Fatal: Must supply path to genesis JSON file ~/geth init ...
0
votes
1answer
86 views

Connect geth on different machines

I am running a private node on my machine using geth. Everything is perfect. Even my friend is doing the same on his machine. Is there any way in which I can connect the node on my machine with my ...
1
vote
0answers
221 views

In a private chain, is it possible to pre-mine a certain amount of ethers at a certain difficulty and then increase the difficulty level ?

I want to run a private ethereum blockchain. What I want is I want to distribute certain number of premined ethers (say 20 million) among some accounts. If I initially keep the difficulty high, It ...
0
votes
2answers
809 views

Error: Error: Exceeds block gas limit TestRPC

I'm new to eth and dapp development and I'm running my own private test chain for development/ testing purposes and keep running into the above error when running truffle test. Is there a way to ...
1
vote
1answer
3k views

How can I get the genesis block info

I am playing around with a private blockchain, and I realize that I do not know how to get the "genesis block" info. The eth.getBlock(0) does not show the Genesis information, for example, pre-fund by ...
0
votes
1answer
117 views

Error when writing --datadir in terminal

I'm trying to follow this tutorial : https://hackernoon.com/heres-how-i-built-a-private-blockchain-network-and-you-can-too-62ca7db556c0?lipi=urn%3Ali%3Apage%3Ad_flagship3_messaging%3B0b%2F8A0z8RdyP%...
0
votes
1answer
282 views

Major conceptual misunderstandings about genesis.json

I am having a hugely difficult time understanding the genesis.json file. Assumption: it seems to me that it serves to both initialize the first block, and also set configuration parameters for the ...
1
vote
1answer
340 views

Why is there a nonce and mixHash value in the genesis file?

I may not fully understand the genesis file. Why is there a nonce and mixHash value in the file if nothing is being mined? It was my impression the genesis file is used to bootstrap block 0, then ...
2
votes
1answer
290 views

What do Ethhash and CliqueConfig refer to in the genesis config?

I don't see any real documentaiton on what these are or to what they refer. Here is the structure in the config file: // Various consensus engines Ethash *EthashConfig `json:"ethash,omitempty"` ...
0
votes
1answer
126 views

How do transactions know how to behave based on the genesis block?

Say I am a miner, and my genesis block on the mainnet has configuration X. A transaction comes in for me to mine. How does my Ethereum client confirm that transaction adheres to all the standards set ...
17
votes
4answers
9k views

What is a chainID in Ethereum, how is it different than NetworkID, and how is it used?

Here it's described in Ethereum's go implementation. type ChainConfig struct { ChainId *big.Int `json:"chainId"` // Chain id identifies the current chain and is used for replay protection A few ...
2
votes
0answers
265 views

Implementing validator contract on existing PoA chain

I'm running a private PoA chain with a height of around 700,000 blocks. I initialised the chain with two signer addresses included in the genesis file to get things started. Since then we've added ...
0
votes
1answer
53 views

Can one genesis block have multiple network identifiers?

Can one genesis block have multiple network identifiers? I am new to Ethereum. So pardon me if it is a silly question.
1
vote
1answer
525 views

Difficulty level in private network

This article has a good description on how Ethereum calculates a difficulty level. And, this article mentions that the difficulty is adjusted such that, one block is generated every 12 seconds. The ...
1
vote
1answer
192 views

Gas minimal limit on private blockchain

I'm trying to set a PoA private Blockchain. I have a problem with the gas limit : Actually, as there's not enough transactions, the gas limit is decreasing continuously . Is there any way I can set in ...
0
votes
1answer
111 views

Test Network - Understanding how Ether is Generated

I have a test network set up (mostly for learning purposes) using a unique network ID and seed node. After calling 'geth init' and not pre-allocating anything to any wallets, the network has no ether ...