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
0answers
7 views

Gas Limit not accurate from Genesis

Gas Limit is not matching the genesis blocks determination, the "gasLimit": "0x895440" is getting me this "Error: Returned error: Transaction cost exceeds current gas limit. ...
0
votes
0answers
19 views

GETH full node genesis mismatch

I was running a full node GETH client for main net Ethereum in a server. The server crashed and was shut for around 8 hours. But after fixing the server and running the full node the GETH doesnt run. ...
1
vote
1answer
22 views

What happens when a Contract is added to the genesis block?

Recently I found out that you can add smart-contracts to the genesis block (genesis.json) of your local ethereum network. Since normally, when you add a smart-contract via a transaction, you can call ...
0
votes
1answer
17 views

Is it possible to initiate Geth server from a specific block instead of genesis block?

I tried setting up Geth servers in full node different times, and all of them are always behind half of total max block. So, they cannot be synced easily even after weeks. I would like to know can I ...
0
votes
1answer
24 views

How, the first (ever) transaction sender, earned his balance?

I've recentaly started learning about blockchain, dapps and Ethereum. I've readed on the yellow paper (and some questions on Stack Exachange) that, differently from Bitcoin, in Ethereum the "genesis ...
0
votes
1answer
13 views

Updating chainspec without resetting (a private Parity blockchain)

I'm running a private Parity blockchain, currently in test mode. There is always a possibility that we'll have to change some initial parameters when the blockchain is live. For example, we might want ...
0
votes
1answer
22 views

How to include constructor arguments in bytecode for smart contract deployment in genesis block?

Please excuse if the title is not perfectly accurate but I had a hard time fitting my problem into 1 question. If you have a better title please feel free to suggest it and i will edit it. I want to "...
6
votes
1answer
68 views

How would a chain specification for a beacon chain look like?

Do Ethereum 2.0 clients, such as Lighthouse, Nimbus, or Prysm implement any standard on defining different chain specifications or genesis blocks comparable to how legacy Ethereum clients do? Would ...
1
vote
0answers
21 views

What happens if in the genesis file, I put something different than 0(0x0) for the “number” property?

From what I have understood, the number property from the genesis file represents the block number (to match block structure). So, logically, it should be 0x0 because the genesis file is the first ...
2
votes
1answer
103 views

What algorithm is used to generate nonce hash in genesis file?

When looking for information about the nonce property of the genesis file, everything says that it is a 64-bit string hash etc. But which algorithm is used to generate this hash ?
1
vote
1answer
67 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
29 views

Simple functions and constructors not working [duplicate]

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
451 views

Genesis.json in private (geth) network

My genesis.json { "config": { "chainId": 9731, "homesteadBlock": 0, "eip150Block": 0, "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "eip155Block": 0, "...
4
votes
1answer
187 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 ...
1
vote
1answer
85 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
1answer
45 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
52 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
203 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
148 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
1answer
404 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
64 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
120 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
39 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
234 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
99 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
248 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 ...
7
votes
2answers
440 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
196 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
195 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
783 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
234 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
168 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
63 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
358 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. ...
8
votes
2answers
3k 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
453 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
2k 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
358 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 ...
2
votes
2answers
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
483 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
587 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
200 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
96 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
245 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
873 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
147 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
324 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
407 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
340 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"` ...