Questions tagged [genesis]
Questions related to the genesis block or file used in the initialization of a blockchain.
149 questions
1
vote
0
answers
20
views
Generate genesis.json from existing node
I'm working with Ethereum fork, called Wemix. According to the list of commands, it supports dumpgenesis command, which is supposed to generate genesis file (similarly to geth, though we don't need to ...
0
votes
0
answers
17
views
Wonder who bought the GENESIS Block?
So. I bought into the block system years ago. Verified it and forgot my code for the longest time finally came across it after logging into my blox paks account. Then again on polygonscan and then ...
1
vote
0
answers
18
views
For a private network, are bootnodes required to be validators when initializing a chain?
I'm using hyperledger besu with QBFT to create a private network. I tested the following configurations:
A) 1 bootnode + 4 validator nodes (4 validators listed in the genesis file)
B) 1 bootnode that ...
0
votes
1
answer
85
views
Is it possible to own the zero-address and the dEaD one?
What do you think it would mean if the same person is the owner of the Genesis wallet address(0) as well as the Dead wallet 0x000000000000000000000000000000000000dEaD?
What do you think would be the ...
0
votes
0
answers
44
views
Lodestar Becon Layer Error
I am trying to set up a beacon client for my private network, I got this error, Error: First offset must equal to fixedEnd 2736633 != 2736653.
What does this mean?
The config.yaml file for the beacon ...
0
votes
0
answers
35
views
How to validate transactions on private network?
I'm currently launching a private network using genesis.json. We ran two nodes to process transactions from miners. I would like to check whether the other node (verifier) is validating the ...
1
vote
0
answers
540
views
How to run a PoS private network with geth & lighthouse?
So far for testing contracts, transactions and other dApp experiments
I had worked with pre-established testnets (Rinkeby, Goerli etc)
now i am tasked with deploying a private PoS network based on ...
1
vote
0
answers
40
views
How to run full archive Geth to sync from the beginning?
I've started v1.12.0 Geth with following flags:
"--mainnet",
"--datadir=/root/.ethereum/mainnet-geth",
"--syncmode=full",
&...
1
vote
1
answer
114
views
Call to a view function returns an incorrect value
I'm currently developing a private network for a client using geth 1.11.3 and have encountered an unusual behavior. Here is a simple contract:
pragma solidity ^0.8.0;
contract Test {
string public ...
3
votes
0
answers
321
views
Generate consensus layer configuration for private post-merge Ethereum network
I want to deploy a private post-merge Ethereum network (i.e. a network that merges right from the genesis). For the execution layer, I created a genesis.json file with the appropriate parameters and I ...
0
votes
1
answer
258
views
Editing genesis file in geth Clique
I'm working on project using the geth clique.
I have 4 nodes running on the network.
I created the 5th node with:
geth --datadir node5 account new
I have edited the genesis.json to add the account ...
0
votes
1
answer
89
views
Is it possible to load contracts in hardhat genesis block?
I am trying to test certain aspects of BSC chain. I need some system contracts, which I can't easily deploy to other addresses without breaking the whole existing system.
Is it possible to add ...
1
vote
0
answers
21
views
Is Reentrancy Check compulsory while inilaizing the initializeGenesisBlock function?
I have one doubt while initializing a Genesis Block function in solidity smart contract
Question = Is Reentracy Check compulsory while inilaizing the initializeGenesisBlock function ?
function ...
0
votes
1
answer
991
views
Where are the transactions in the genesis block?
When I query the genesis block I get this:
AttributeDict({'difficulty': 17179869184, 'extraData': HexBytes('0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa'), 'gasLimit': 5000, '...
1
vote
0
answers
107
views
High block mining time even with low difficulty
We have a private network running on Hyperledger Besu. We are using ethash, and it had a fixed difficulty of 3625. That was producing blocks fairly quickly, averaging about 8-10 seconds, with some as ...
1
vote
0
answers
31
views
How to set Ethereum protocol in the genesis block file for a private Ethereum network?
Suppose there are some EIPs (EIPx, EIPy, EIPz) and EIPz is the latest protocol. For configuration the genesis block file in a private Ethereum network, if I set EIPz as the default protocol does that ...
1
vote
0
answers
150
views
Problem With Extradata Clique: Genesis File
Can you help me?, so I'm having problems with the Extradata section, so when I fill in the extradata, and when I run it successfully there is no problem, but when I run explorer the address is ...
0
votes
1
answer
105
views
The Get Functions of ERC1820 (added in genesis file) not working correctly on Quorum
Because I cannot deploy the magic ERC1820 directly to my private Quorum Network, I must add it to the genesis file like this:
"0x1820a4b7618bde71dce8cdc73aab6c95905fad24": {
"...
4
votes
0
answers
592
views
How to setup genesis.json for private network for POS conse
I want to setup geth based private network using POS consensus, in Documentation, two sample genesis files are given, one is for default POW and other is for POA, What changes I have to make for POS ...
0
votes
0
answers
252
views
What is the formula to check difficulty on Ethereum genesis block? given ex: genesis block difficulty = 0x0400
I am having trouble understanding something related to calculating difficulty.
Target difficulty is described as 2^256 / difficulty .
The difficulty of the genesis block is notated as 0x0400 which is ...
0
votes
0
answers
206
views
State root mismatch error at mining genesis block
I am working on a private Besu implementation. I made some modifications to the open source package, and when I went to start a new chain instance it gives a state root mismatch error for the genesis ...
0
votes
1
answer
961
views
Go ethereum : ChainID
I install go ethereum for practice
I use my blockchain.
My question is
what does it mean "ChainId" in genesis.json?
For example
if I write ChainId:1, what does it mean?
Dont forget that I'm ...
0
votes
0
answers
154
views
Restricting contract deployment on a private eth fork
I have a private fork of the ETH blockchain and I'd like to modify the source to allow deploying contracts from a single address only using this answer. The caveat, however, is that instead of a ...
2
votes
1
answer
4k
views
Ethereum Null Address List
I found Null Address list in etherscan.
https://etherscan.io/accounts/label/burn
I know that null address is 0x0000000000000000000000000000000000000000 because of it is genesis address, but I found ...
1
vote
0
answers
54
views
Spin up custom ETH based blockchain: just changing the genesis and toml?
If I wanted, lets say, to power on a clone of BSC (just to have a PoA version of the thing), would it be enough to follow the full node setup guide from Binance and just edit the config.toml and the ...
1
vote
1
answer
185
views
How to make your private ethereum block chain non mine-able?
I have made a private instance of ethereum and I want to make it non-mineable once after it is deployed. How will I be able to achieve that?
0
votes
1
answer
811
views
why genesis block has no transactions in geth private network?
I started geth in dev mode by the following command:
geth --datadir /home/mehrdad/eth/data_bc/ -http -dev
just after the blockchain was started I tried to see created accounts (in interactive geth ...
0
votes
0
answers
51
views
Start Blockchain
Im looking for a tutorial or link in order to start a customized public blockchain and its coin with POS consensus from zero (not fork)
Thanks for your help 🙏🙏
2
votes
1
answer
613
views
Problem with deploying the precompiled contract bytecode in genesis.json file
I am trying to add this simple test contract dumb.sol to my genesis.json file.
pragma solidity <0.8.6;
contract Dumb {
string public name;
string public symbol;
constructor() {
...
1
vote
1
answer
932
views
What should be done first: extract snapshot or create genesis?
bsc documentation describes a method of accelerating creation of a full-node using a snapshot.
However, it is not clear in which order these commands should be executed and if it makes any difference:
...
2
votes
1
answer
858
views
Is it possible to change the network id in GETH once geth is initialized?
I want to change the network_id of my private ethereum network setup with geth. It seems like I have to change it in genesis.json file and also have that id when I start geth.
But, to apply the ...
2
votes
1
answer
94
views
Does verification of a world state require downloading the whole ethereum blockchain?
Lets say I'm a new node on the Ethereum network, I download a world state of 500 blocks ago and I download the blockchain from that point to present (500 blocks).
Can I verify that the world state I'...
2
votes
0
answers
261
views
How to initialize storage for smart contracts in the genesis block
I have a simple smart contract that will be added as part of genesis block. Need to initialize the field "message" with default value as constructor is not executed as part of genesis block ...
0
votes
0
answers
503
views
How to fix "Error: invalid transaction v, r, s values" when deploying a smart contract to a private blockchain?
Whenever I try to deploy a smart contract, I get an error that says "Error: invalid transaction v, r, s values". I'm using the following genesis JSON:
{
"config": {
"...
1
vote
0
answers
26
views
Geth Puppeth set Seaing Profit to 0
I am creating a private blockchain network using GoEthereum. I am using Clique (to get the PoA protocol). Since I have predefined sealers/miners, I do not want to set any mining profit for them. But ...
2
votes
1
answer
1k
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 ...
1
vote
1
answer
522
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
1
answer
41
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
1
answer
38
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
1
answer
629
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
1
answer
110
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
0
answers
29
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
1
answer
226
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
1
answer
134
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
0
answers
38
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
2
answers
3k
views
Genesis.json in private (geth) network
My genesis.json
{
"config": {
"chainId": 9731,
"homesteadBlock": 0,
"eip150Block": 0,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 0,
"...
9
votes
1
answer
1k
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 ...
2
votes
1
answer
148
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
1
answer
137
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
1
answer
127
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 ...